From d22117ba555bb0acaa0b7dada93180a6da5dd0b2 Mon Sep 17 00:00:00 2001 From: teahubxyz Date: Wed, 21 Oct 2026 08:26:51 +0000 Subject: [PATCH] sw: stats.html offline too Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_01K6897PWcUEwHiqZMcVnNF6 --- sw.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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