hola, tengo un enlace, digamos que es https://example.com/exp , la página exp es mi página de agregar y está almacenada en caché en mi trabajador de servicio y funciona sin conexión ahora cuando abro mi lista y elijo editar un registro se abre en https://example.com/exp?id=2 cuando abro esta página no funciona sin conexión si elimino la parte de identificación entonces funciona pero luego es un complemento quiero que mi página de edición esté fuera de línea as-bien, ¿cómo soluciono esto?
por favor ayuda
mi código**
// give your cache a name const cacheName = 'my-cache'; // alert('hi') // put the static assets and routes you want to cache here const filesToCache = [ '/', 'https://example.com/exp', ]; // the event handler for the activate event self.addEventListener('activate', e => self.clients.claim()); // the event handler for the install event // typically used to cache assets self.addEventListener('install', e => { e.waitUntil( caches.open(cacheName) .then(cache => cache.addAll(filesToCache)) ); }); // the fetch event handler, to intercept requests and serve all // static assets from the cache self.addEventListener('fetch', e => { e.respondWith( caches.match(e.request) .then(response => response ? response : fetch(e.request)) ) });