From f266c4ffb91566e1b37d078c090f6df048f1d703 Mon Sep 17 00:00:00 2001 From: Jonathan Sykes Date: Tue, 30 Jun 2026 08:40:23 +0800 Subject: [PATCH] fix: bump service worker cache to v1.0.1 to evict stale app shell MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Existing PWA installs cache the app shell (app.js et al.) cache-first under ytplayer-v1.0.0. Without a version bump they'd keep serving the old app.js that lacked WEB-mode OPFS support, so the offline-cache fix would never reach already-installed clients. Bumping forces activate → old cache delete → re-fetch, and triggers the in-app 'Update ready' banner. --- frontend/sw.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/sw.js b/frontend/sw.js index 302bd6b..e6654cd 100644 --- a/frontend/sw.js +++ b/frontend/sw.js @@ -16,7 +16,7 @@ * 5. SW calls skipWaiting() → takes over → client reloads. * ========================================================================== */ -const VERSION = 'v1.0.0'; // ← bump this on every deploy to bust the cache +const VERSION = 'v1.0.1'; // ← bump this on every deploy to bust the cache const CACHE = 'ytplayer-' + VERSION; // Files that form the installable app shell.