From 4a3497f385585dea0b6a902f48be3dc2ac6fb377 Mon Sep 17 00:00:00 2001 From: "prompt.ac/@jeffrey" Date: Fri, 24 Apr 2026 14:22:33 -0700 Subject: [PATCH] sw: bump cache to v5 to force arena UDP listener refresh The previous fix added channel.on("arena:snap") + channel.on("squash:move") to lib/udp.mjs, but stale-while-revalidate meant existing clients kept running the cached copy without the new listeners. Bumping CACHE_NAME triggers the activate handler to delete ac-modules-v4 and fetch fresh. Co-Authored-By: Claude Opus 4.7 (1M context) --- system/public/sw.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/public/sw.js b/system/public/sw.js index 8328488515..39030c7e76 100644 --- a/system/public/sw.js +++ b/system/public/sw.js @@ -1,7 +1,7 @@ // Aesthetic Computer Service Worker // Caches JavaScript modules for faster subsequent loads -const CACHE_NAME = 'ac-modules-v4'; // Bump version to force SW update +const CACHE_NAME = 'ac-modules-v5'; // Bump version to force SW update const CACHE_DURATION = 60 * 60 * 1000; // 1 hour in ms (dev-friendly) // Critical modules to precache on install -- 2.51.2