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

275
Vistas
Delete cache in iframe (3rd party website)

Hi i wanted to clear cache in my iframe, but still the old content still there and the account still connect and not the new one.

Can anyone help me? Thank you

This is the code:

<head>
    <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate">
    <meta http-equiv="Pragma" content="no-cache">
    <meta http-equiv="Expires" content="0">
</head>

<div>
    <iframe id="partner-browser-iframe" style="display: block; overflow: hidden; background: #0000; border: none"
        width="1000" height="1000" src="url" frameborder="0"></iframe>
</div>


<script>
    var myFrame = document.querySelector('iframe');

    var myButton = document.querySelector('button');

    myButton.onclick = function (evt) {
        myFrame.contentWindow.location.reload(true);

    }
</script>

enter image description here

about 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

Simple JS way. Reloads Pages without cache.

<body>
<button onclick=location.reload('true')>Reload once</button>
</body>

PS: First you can try to run location.reload(true) in your browser's console.

about 4 years ago · Santiago Trujillo 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