From 90c680414c6079b18b82c65adfeff60e3bd66dd9 Mon Sep 17 00:00:00 2001 From: Bruno Charest Date: Fri, 19 Jun 2026 15:25:08 -0400 Subject: [PATCH] fix: Service Worker cache version v2 -> v3 to bust stale HTML cache - SW cached / and /static/index.html with cache-first strategy - Old HTML with 422 error persisted after rebuild - Bumping CACHE_VERSION forces reinstall with fresh assets --- frontend/sw.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/sw.js b/frontend/sw.js index 79c6556..9795f21 100644 --- a/frontend/sw.js +++ b/frontend/sw.js @@ -1,6 +1,6 @@ /* ObsiGate Service Worker - PWA v2 with IndexedDB offline support */ -const CACHE_VERSION = 'obsigate-v2-pwa'; +const CACHE_VERSION = 'obsigate-v3-pwa'; const STATIC_CACHE = CACHE_VERSION + '-static'; const DYNAMIC_CACHE = CACHE_VERSION + '-dynamic'; const MAX_DYNAMIC_CACHE_SIZE = 100;