mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2026-08-10 00:16:59 +00:00
On resizing CDNs the imeta `x` (post-resize hash) can differ from the `ox` (original hash) embedded in the URL. The bridge previously preferred `explicitHash` over the URL's sha for "authoritative casing", but the upstream file on `xs` is named after the URL's sha, not the imeta hash. For URLs like https://image.nostr.build/<ox>.png with imeta x=<post-resize> the cache would request /<x>.png and 404 on miss. Always use the sha parsed from the URL path; drop the explicitHash parameter. `extractSha256FromUrlPath` already lowercases, so the casing concern is moot.