sw
This commit is contained in:
1 parent
0b2c5ca4c9
commit
ec02a6ddaf
1 file changed
+4
-1
+4
-1
@@ -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)));
|
||||
|
||||
Reference in new issue
Block a user