sw
Build and Publish / Metadata (push) Successful in 1s
Build and Publish / BuildAndDeployAmd64 (push) Successful in 24s

This commit is contained in:
mats committed 2026-09-22 14:04:06 +02:00
1 parent 0b2c5ca4c9
commit ec02a6ddaf
1 file changed
+4 -1
+4 -1
View File
@@ -1,5 +1,8 @@
const CACHE = 'gibbz-shell-v1';
const SHELL = ['/', '/index.html', '/style.css', '/app.js', '/manifest.webmanifest'];
// Only stable, unhashed paths here — the built JS/CSS bundle gets a content
// hash in its filename (e.g. /assets/index-abc123.js), so it can't be listed
// up front. The fetch handler below caches it lazily on first real request.
const SHELL = ['/', '/index.html', '/manifest.webmanifest'];
self.addEventListener('install', (event) => {
event.waitUntil(caches.open(CACHE).then((cache) => cache.addAll(SHELL)));