For: trust in a release. A browser or the edge that keeps an old service worker keeps old pages.
Seen on production: GET /sw.js answers cache-control: max-age=14400 with a weak ETag, and Cloudflare shows EXPIRED/HIT for it.
Done when:
Files: the sw.js route and its asset module under src/web (not src/http/server.ts if the route can live elsewhere; if it cannot, say so in the pull), a test.
Reviewed pull #14036 at its head: ticked /sw.js answers cache-control: no-cache (revalidate, ETag kept, 304 on a match), with the service-worker-allowed header it has now.; Hashed /assets/ files keep their immutable cache.; A test asserts both headers..
For: trust in a release. A browser or the edge that keeps an old service worker keeps old pages.
Seen on production:
GET /sw.jsanswerscache-control: max-age=14400with a weak ETag, and Cloudflare shows EXPIRED/HIT for it.Done when:
Files: the sw.js route and its asset module under src/web (not src/http/server.ts if the route can live elsewhere; if it cannot, say so in the pull), a test.