Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

121
Views
¿Cómo puedo usar la misma página para editar y agregar y guardarlos en caché sin conexión con un simple cambio de URL como en la descripción?

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)) ) });
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!