diff --git a/sw.js b/sw.js index ca03c6a..5ae1c01 100644 --- a/sw.js +++ b/sw.js @@ -3,7 +3,7 @@ // REV is stamped by the shots workflow on every push, so an installed app sees each update as a new worker. const REV = "c1606fdf9b4d"; const SHELL = "gandora-shell-" + REV; -const FILES = ["/", "/index.html", "/brain.js", "/favicon.svg", "/manifest.json", "/icons/icon.svg"]; +const FILES = ["/", "/index.html", "/brain.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("activate", (e) => { e.waitUntil(caches.keys().then((ks) => Promise.all(ks.filter((k) => k !== SHELL).map((k) => caches.delete(k)))).then(() => self.clients.claim())); }); // same-origin GETs: network first (so a deploy shows up on the next open), cache as the fallback; everything else untouched