Spaces:
Running
Running
| const CACHE = 'vigilante-v1'; | |
| const ARCHIVOS = ['/app', '/familiar']; | |
| self.addEventListener('install', e => { | |
| e.waitUntil(caches.open(CACHE).then(cache => cache.addAll(ARCHIVOS))); | |
| }); | |
| self.addEventListener('fetch', e => { | |
| e.respondWith(fetch(e.request).catch(() => caches.match(e.request))); | |
| }); | |