mirror of
https://github.com/supabase/supabase.git
synced 2026-10-08 19:05:06 +03:00
## I have read the [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) file. YES ## What kind of change does this PR introduce? Bug fix ## What is the current behavior? Social-media crawlers (X, LinkedIn, etc.) cache the dynamic OG images generated by the `generate-og` Edge Function. When an OG image is updated or a crawler caches the wrong image, the stale version persists indefinitely because the URL doesn't change between deploys. ## What is the new behavior? `getAbsoluteBlogSocialImage` now appends a `&v={timestamp}` parameter to OG image URLs that point to the `generate-og` Edge Function. The timestamp is evaluated once at build time (`Date.now()`), so each deploy produces unique meta tag URLs that bypass crawler caches. Static image URLs are left untouched. ## Additional context Only affects the `og:image` and `twitter:image` meta tags — on-site thumbnails and other image references are unchanged. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit ## Release Notes * **Bug Fixes** * Fixed cache refresh behavior for dynamically generated OG images to ensure updated content is served with each deployment. <!-- end of auto-generated comment: release notes by coderabbit.ai -->