vers 2.6.1
This commit is contained in:
@@ -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');
|
||||
}
|
||||
});
|
||||
})
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user