Overview
src/serviceWorker.ts uses fixed cache names (static-js, static-css, images, api-responses) and the activate handler (lines 147-153) only calls clientsClaim() without deleting old caches. Because StaleWhileRevalidate caches content-hashed JS/CSS under non-versioned cache names, entries from prior deployments accumulate indefinitely. Add a cache-name version and delete non-current caches during activate.
Overview
src/serviceWorker.ts uses fixed cache names (static-js, static-css, images, api-responses) and the activate handler (lines 147-153) only calls clientsClaim() without deleting old caches. Because StaleWhileRevalidate caches content-hashed JS/CSS under non-versioned cache names, entries from prior deployments accumulate indefinitely. Add a cache-name version and delete non-current caches during activate.