dev: bump the SW REV so phones drop the pre-split cache
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01K6897PWcUEwHiqZMcVnNF6
This commit is contained in:
1 parent
62f6f3951c
commit
f173b9dffd
1 file changed
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
// gandora's service worker: the shell is cached so the app opens and the library plays with no signal.
|
// gandora's service worker: the shell is cached so the app opens and the library plays with no signal.
|
||||||
// Tracks live in IndexedDB already; the DJ and new renders need the network and the page says so.
|
// Tracks live in IndexedDB already; the DJ and new renders need the network and the page says so.
|
||||||
// REV is stamped by the shots workflow on every push, so an installed app sees each update as a new worker.
|
// REV is stamped by the shots workflow on every push, so an installed app sees each update as a new worker.
|
||||||
const REV = "be3bce8aac3e";
|
const REV = "split-62f6f39";
|
||||||
const SHELL = "gandora-shell-" + REV;
|
const SHELL = "gandora-shell-" + REV;
|
||||||
const FILES = ["/", "/index.html", "/app.js", "/core.js", "/covers.js", "/dj.js", "/mashup.js", "/player.js", "/render.js", "/store.js", "/ui/library.js", "/ui/player.js", "/ui/sheet.js", "/ui/taste.js", "/stats.html", "/favicon.svg", "/manifest.json", "/icons/icon.svg"];
|
const FILES = ["/", "/index.html", "/app.js", "/core.js", "/covers.js", "/dj.js", "/mashup.js", "/player.js", "/render.js", "/store.js", "/ui/library.js", "/ui/player.js", "/ui/sheet.js", "/ui/taste.js", "/stats.html", "/favicon.svg", "/manifest.json", "/icons/icon.svg"];
|
||||||
self.addEventListener("install", (e) => { e.waitUntil(caches.open(SHELL).then((c) => c.addAll(FILES)).then(() => self.skipWaiting())); });
|
self.addEventListener("install", (e) => { e.waitUntil(caches.open(SHELL).then((c) => c.addAll(FILES)).then(() => self.skipWaiting())); });
|
||||||
|
|||||||
Reference in new issue
Block a user