commit d61befb94644de5118e0e2645ebf8742949a6db0
parent ce82f1b7fa07cc122fd29313d3f41b24b6d7dd90
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date: Fri, 25 Sep 2026 21:27:08 -0400
export: both service workers retire the pre-brand shell cache — SHELL is shell-v2, VERSION stays v1 (brand S1)
/icons/ is cache-first in SHELL, so an installed app would keep the old mark
forever. Activate deletes every cache it does not keep: renaming SHELL alone
drops shell-v1 and keeps pages-v1 / meta-v1, the readers' offline channel
downloads, which a VERSION bump would have deleted.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Diffstat:
2 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/export/service-worker/site-sw.js b/export/service-worker/site-sw.js
@@ -24,8 +24,13 @@
* (avoids IndexedDB inside the SW).
*/
+// VERSION names the DATA caches, and activate deletes every cache it does not
+// keep — so bumping it throws away every reader's offline channel downloads.
+// Never bump it for a shell change. SHELL is named on its own: "shell-v2"
+// retired the pre-brand icons (cache-first under /icons/, so an installed app
+// would otherwise keep the old mark forever) while PAGES and META survive.
const VERSION = "v1";
-const SHELL = `shell-${VERSION}`;
+const SHELL = "shell-v2";
const PAGES = `pages-${VERSION}`;
const META = `meta-${VERSION}`;
diff --git a/export/service-worker/sw-hub.js b/export/service-worker/sw-hub.js
@@ -16,8 +16,13 @@
* - the page's message API carries `origin` + absolute shard URLs.
*/
+// VERSION names the DATA caches, and activate deletes every cache it does not
+// keep — so bumping it throws away every reader's offline channel downloads.
+// Never bump it for a shell change. SHELL is named on its own: "shell-v2"
+// retired the pre-brand icons (cache-first under /icons/, so an installed app
+// would otherwise keep the old mark forever) while PAGES and META survive.
const VERSION = "v1";
-const SHELL = `shell-${VERSION}`;
+const SHELL = "shell-v2";
const PAGES = `pages-${VERSION}`;
const META = `meta-${VERSION}`;