fix(sw): bump cache version pra invalidar HTML antigo (v1.5.0)
Service Worker estava servindo HTML cacheado sem o código WebSocket/auto-sync. Bump da VERSION força activate event a deletar caches antigos. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
ae09a5cce0
commit
c76b50b45b
1 changed files with 1 additions and 1 deletions
|
|
@ -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';
|
||||
const VERSION = 'shivao-v1.5.0';
|
||||
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}`;
|
||||
|
|
|
|||
Loading…
Reference in a new issue