Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

132
Vistas
PWA service worker updated at every refresh

I'm registering service worker with the following updated callback:

updated() {
    alert('An update is ready. Please refresh the page.')
},

I make a minor change to the content of service-worker.js file to the browsers detect the change.

const version = 3.7;

When I deploy it I successfully get the updated alert but when I refresh I get it again. However I receive the new changes but I still get this alert which is not necessary anymore.

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

This code fixed the problem

self.addEventListener('install', function(event) {
  self.skipWaiting();
});
about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda