Monorepo for Aesthetic.Computer aesthetic.computer
4
fork

Configure Feed

Select the types of activity you want to include in your feed.

caddy: force no-cache on service worker scripts

sw.js was being served with max-age=3600, so browsers wouldn't even
check for an updated SW for up to an hour. That defeats CACHE_NAME
bumps — clients stayed pinned to the old worker (and its stale module
cache) until the HTTP cache expired. Service workers should always
revalidate.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

+5
+5
lith/Caddyfile
··· 19 19 header @cacheable Cache-Control "public, max-age=3600, stale-while-revalidate=86400" 20 20 header @cacheable Access-Control-Allow-Origin * 21 21 22 + # Service workers must always revalidate — cached sw.js delays rollout of 23 + # bumped CACHE_NAME, pinning clients to stale module caches. 24 + @serviceworker path /sw.js /firebase-messaging-sw.js 25 + header @serviceworker Cache-Control "no-cache, no-store, must-revalidate" 26 + 22 27 # HTML: no-cache (always revalidate, but use ETag for 304) 23 28 @html path / *.html 24 29 header @html Cache-Control "no-cache"