Skip to content

fix(seo): cache-bust Open Graph image URLs - #85

Open
feynon wants to merge 1 commit into
mainfrom
cursor/og-image-cache-bust-a0bb
Open

fix(seo): cache-bust Open Graph image URLs#85
feynon wants to merge 1 commit into
mainfrom
cursor/og-image-cache-bust-a0bb

Conversation

@feynon

@feynon feynon commented Apr 10, 2026

Copy link
Copy Markdown
Member

Summary

Social crawlers and CDNs often cache Open Graph image responses aggressively. The site serves dynamic previews from /api/og, but metadata pointed at a stable URL, so updated images could appear stale.

Changes

  • Add getOGImageUrl() in lib/og-image-url.ts that appends v=<timestamp> (using & when the URL already has a query string, e.g. changelog).
  • Use it for every openGraph.images and twitter.images entry that referenced /api/og, including the root layout, home page, book routes, and legal/download/about/mission/blog listing metadata.

Notes

Each new deployment gets a new build time, so the v value changes on deploy and encourages fresh fetches without manual cache purges.

Open in Web Open in Cursor 

Add getOGImageUrl() that appends a v=timestamp param (using & when the URL
already has a query string). Use it for all /api/og metadata so social
previews pick up regenerated OG images instead of stale cached responses.

Co-authored-by: Ankesh Bharti <hey@ankeshbharti.com>
@vercel

vercel Bot commented Apr 10, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
tiles-next Ready Ready Preview, Comment, Open in v0 Apr 10, 2026 9:28pm

Request Review

@feynon
feynon marked this pull request as ready for review April 11, 2026 05:28
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants