SplittyDev / spacebadgers

Fast and clean SVG badges
https://badgers.space
MIT License
252 stars 4 forks source link

[Worker] Update caching #27

Closed SplittyDev closed 1 year ago

SplittyDev commented 1 year ago

This PR updates the Cache-Control directive returned by the worker when fetching badges.

My suspicion is that the immutable part of the cache response caused Vercel Edge cache to never revalidate the response and cache indefinitely, ignoring the max-age directive. Removing immutable in favor of must-revalidate might help.

This might help with #26, but I'm not fully convinced yet.

vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
spacebadgers ✅ Ready (Inspect) Visit Preview Jul 18, 2023 11:51am