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

276
Views
Eliminar caché en iframe (sitio web de terceros)

Hola, quería borrar el caché en mi iframe, pero el contenido anterior aún está allí y la cuenta aún se conecta y no la nueva.

¿Alguien puede ayudarme? Gracias

Este es el código:

 <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>

ingrese la descripción de la imagen aquí

about 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Manera simple de JS. Recarga páginas sin caché.

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

PD: Primero puede intentar ejecutar location.reload(true) en la consola de su navegador.

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