From a5bb6f552889e9e473c45282f06a299cb8e12c13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?PontualTech=20/=20Karl=C3=A3o?= Date: Wed, 29 Apr 2026 08:39:41 -0300 Subject: [PATCH] =?UTF-8?q?fix(sw):=20bump=20cache=20version=20pra=20for?= =?UTF-8?q?=C3=A7ar=20atualiza=C3=A7=C3=A3o=20v1.10.12?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Karlão estava com v1.10.7 cacheado mesmo com servidor em v1.10.12. Service Worker estava em v1.7.0 (não bumpado desde então). Bump força activate event a deletar caches antigos. --- server/public/sw.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/public/sw.js b/server/public/sw.js index b05bae6..cb41661 100644 --- a/server/public/sw.js +++ b/server/public/sw.js @@ -1,7 +1,7 @@ // Shivao Service Worker — offline real // Estratégia: shell precachado, tiles cache-first, windy network-first, /api passa direto. // Versão usada nos cache names — bumpa essa string pra invalidar caches antigos em deploys. -const VERSION = 'shivao-v1.7.0'; +const VERSION = 'shivao-v1.10.12'; const SHELL_CACHE = `shivao-shell-${VERSION}`; const TILES_CACHE = 'shivao-tiles-v1'; // separado pra não invalidar tiles em update do shell const WINDY_CACHE = `shivao-windy-${VERSION}`;