Skip to content

Commit c482507

Browse files
authored
Merge pull request #9 from enga018/claude/new-md-availability-r5ciwb
Fix stale PWA cache: bump service worker CACHE_NAME to v1.29.2
2 parents 9b1b286 + 792c78b commit c482507

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

sw.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
const CACHE_NAME = 'nsnvc-tracker-v1.28.0';
1+
// Must be bumped on every deploy that changes index.html/manifest.json —
2+
// this is the only signal that makes the browser treat sw.js as changed and
3+
// install/activate a fresh worker. If it's left stale, already-installed
4+
// PWAs keep serving whatever was cached under the old name indefinitely
5+
// (this has silently happened before: see the v1.25.6 and v1.28.0 fixes).
6+
const CACHE_NAME = 'nsnvc-tracker-v1.29.2';
27
const urlsToCache = [
38
'./',
49
'./index.html',

0 commit comments

Comments
 (0)