1// Self-destructing service worker 2// Clears all caches and unregisters itself to fix stale chunk issues 3// Push notifications still work via the browser's built-in push handler 4 5self.addEventListener('install', () => { 6 self.skipWaiting(); 7}); 8 9self.addEventListener('activate', (event) => { 10 event.waitUntil( 11 caches.keys().then((keys) => { 12 console.log('[SW] Clearing all caches and unregistering...'); 13 return Promise.all(keys.map((key) => caches.delete(key))); 14 }).then(() => { 15 return self.registration.unregister(); 16 }).then(() => { 17 return self.clients.matchAll(); 18 }).then((clients) => { 19 clients.forEach((client) => client.navigate(client.url)); 20 }) 21 ); 22}); 23 24// No fetch handler â all requests go straight to network
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.