Monorepo for Aesthetic.Computer aesthetic.computer
4
fork

Configure Feed

Select the types of activity you want to include in your feed.

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) <noreply@anthropic.com>

+1 -1
+1 -1
system/public/sw.js
··· 1 1 // Aesthetic Computer Service Worker 2 2 // Caches JavaScript modules for faster subsequent loads 3 3 4 - const CACHE_NAME = 'ac-modules-v4'; // Bump version to force SW update 4 + const CACHE_NAME = 'ac-modules-v5'; // Bump version to force SW update 5 5 const CACHE_DURATION = 60 * 60 * 1000; // 1 hour in ms (dev-friendly) 6 6 7 7 // Critical modules to precache on install