vers 2.6.1

This commit is contained in:
2026-07-14 04:40:19 +02:00
parent 189a9114ff
commit 74989ad117
4 changed files with 26 additions and 9 deletions
+6 -1
View File
@@ -1,4 +1,4 @@
const CACHE_NAME = 'rpigroupplay-v2';
const CACHE_NAME = 'rpigroupplay-v3';
const ASSETS = [
'./',
'./index.php',
@@ -93,6 +93,11 @@ self.addEventListener('fetch', (e) => {
});
}
return response;
}).catch(() => {
// Fallback offline: restituiamo l'app shell se l'utente sta navigando
if (e.request.mode === 'navigate') {
return caches.match('./index.php');
}
});
})
);