Rework MischLabs into service dashboard
All checks were successful
Build & Push Docker Image to Gitea Registry / build-and-push (push) Successful in 11s
All checks were successful
Build & Push Docker Image to Gitea Registry / build-and-push (push) Successful in 11s
This commit is contained in:
10
sw.js
10
sw.js
@@ -1,9 +1,11 @@
|
||||
const CACHE_NAME = 'mischlabs-pwa-v2';
|
||||
const CACHE_NAME = 'mischlabs-pwa-v3';
|
||||
const APP_SHELL = [
|
||||
'/',
|
||||
'/index.html',
|
||||
'/style.css?v=8',
|
||||
'/manifest.webmanifest?v=2',
|
||||
'/offline.html',
|
||||
'/style.css?v=9',
|
||||
'/app.js?v=1',
|
||||
'/manifest.webmanifest?v=3',
|
||||
'/icons/icon-192.png',
|
||||
'/icons/icon-512.png',
|
||||
'/icons/apple-touch-icon-v2.png'
|
||||
@@ -34,7 +36,7 @@ self.addEventListener('fetch', (event) => {
|
||||
|
||||
if (request.mode === 'navigate') {
|
||||
event.respondWith(
|
||||
fetch(request).catch(() => caches.match('/index.html'))
|
||||
fetch(request).catch(() => caches.match('/offline.html'))
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user