Commit a101a4b
committed
fix(sw): ship self-unregistering service worker
A previous deployment registered a serwist-based service worker that's
still active in some browsers, intercepting requests and serving stale
cached content. The codebase no longer registers a SW, but the old one
keeps running until something replaces it.
This file is what the browser fetches when checking for SW updates.
On activation it clears all caches, unregisters itself, and reloads
controlled pages so they refetch from the network.1 parent 5b7929a commit a101a4b
1 file changed
Lines changed: 30 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
0 commit comments