# Refresh social preview filename and shorten HTTP cache · PR \#46 · screen/col

[View on GitCafe](https://git.cafe/screen/col/pull/46)

Repository: [screen/col](https://git.cafe/screen/col)

Visibility: public

State: merged

Source repository: screen/col

Source branch: fix/social-preview-cache

Target branch: main

Head commit: 370a96d503f556f34e8b35b0231ace5f9fb40fc4

[Discussion and reviews](https://git.cafe/screen/col/pull/46)

[Commits](https://git.cafe/screen/col/pull/46/commits?format=markdown)

[Files changed](https://git.cafe/screen/col/pull/46/diffs?format=markdown)

## Description

---

X can retain an older card even after the site serves updated metadata and artwork. Give the JPEG a new filename and reference it in both Open Graph and Twitter metadata. Set HTTP cache freshness to 60 seconds for the legacy and versioned preview paths, and update the image generator.

Validation: typecheck, production build, discovery tests, and local HTTP checks passed. Both JPEG paths return 200 with the 60-second cache header. Twitterbot receives metadata referencing the versioned image. X's independent card cache is not controlled by these headers; use a fresh share URL when needed.


<!-- This is an auto-generated comment: release notes by coderabbit.ai -->

## Summary by CodeRabbit

* **Bug Fixes**
  * Updated the social preview image used when sharing the site, helping new shares show the latest preview.
  * Reduced the browser and shared-cache duration for the current and previous preview images to 60 seconds, so updates can become available sooner.
  * Kept the previous preview image available. Social platforms may still retain cached previews, and refresh timing is not guaranteed.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
