The serviceworker config in the generated sw.js contains the revision of cached pages. Client-side these revisions are used by Workbox to invalidate the local cache. The local cache strategy is precacheAndRoute. As long as sw.js is not refreshed the local cache is not invalidated and stale pages are served indefinetly.
The current policy for sw.js was 1 year, which probably was a bug, since there is also a shadowed no-cache config.
The serviceworker config in the generated sw.js contains the revision of cached pages. Client-side these revisions are used by Workbox to invalidate the local cache. The local cache strategy is
precacheAndRoute
. As long assw.js
is not refreshed the local cache is not invalidated and stale pages are served indefinetly.The current policy for
sw.js
was 1 year, which probably was a bug, since there is also a shadowedno-cache
config.