Repository navigation
fix(seo): cache-bust the card so scrapers see the fixed headers - #5
Merged
Merged
Conversation
The edge was still serving the pre-fix response for og-image.png (s-maxage was a week), so a corrected header could not reach a scraper. Assets now cache for an hour, and the card is referenced as og-image.png?v=1 so every platform fetches a URL it has never cached. Bump the version whenever the image changes. Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
imgul
added a commit
that referenced
this pull request
Oct 20, 2026
fix(seo): cache-bust the card so scrapers see the fixed headers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The header is right now (verified live:
Cross-Origin-Resource-Policy: cross-originon/og-image.png,same-originon documents), but two caches were still serving the broken version:s-maxage=604800— a week of staleness on a correction.og-image.pngwould keep showing a broken card even after it healed.This PR:
max-age=3600, s-maxage=3600), so a mistake heals in an hour instead of a week.og-image.png?v=1inog:image,twitter:imageand the JSON-LD. Every platform fetches a URL it has never cached. Bump the version whenever the image changes.Two new assertions: the card URL carries its version, and the asset cache lifetime stays short.
383 tests, typecheck, build and guard green.