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

273
Views
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 answers
Answer question

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