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

507
Vistas
How to auto-refresh a web page, even if server returned an error?

I have an HTML+JS web page, which uses http-equiv="refresh" to auto-refresh itself every few seconds. However, sometimes the server returns a 502 "bad gateway" error, so the HTML code is not loaded to the client and thus this auto-refresh does not work any more. However, mnanually refresing the page via F5 in the browser does correctly reload the page.

Now I would like to make this page a bit more robust by allowing itself to refresh, even after a 502 error has been returned. So in other words, the client should try to reload the HTML page after X seconds, in any case.

Is there any way to achieve this kind of auto-refreshing, even if the server does return an error instead of the real HTML page?

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

0

I found a solution. For the records:

The page content (everything within the <body> tags) has been moved into another page, which is displayed on the main page (wrapper) via an iframe. That wrapper page itself does the reloading via JS.

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