0

I have a master page which has 2 iframes - which are frequently updated. The problem is when I reload the master page - both of the iframes LOAD from CACHE (Chrome takes the cached versions no matter how much time has passed after the last updates of the iframe content). This is so frustrating. Can I force the master page to load the iframes FROM SERVER each time it is reloaded?

Thank you!

Dave

  • all the methods offered in this link DO NOT WORK! – daverichards Oct 19 '17 at 07:34
  • 1
    @daverichards that is great. However, we expect you to do your research before posting. So ideally this question would contain data as to why this link doesn't help you. You probably tried a couple of these methods, to say they didn't work, right? So please post results of these tries. Let us know what doesn't work, and what you expected from them instead. If you just say "they don't work", this question will likely be closed as a duplicate. You may be right, but the burden of proof is on the user asking the question here. – Patrice Oct 19 '17 at 14:51

1 Answers1

0

when you call the page then you add time like this www.example.com/iframe.html?q=201710191034123

Code

var d = new Date();
var iframe = $('#secondPage');
iframe.attr('src','www.yoursite.com/yourpage?g='+d.getTime())
Ferhat BAŞ
  • 797
  • 7
  • 12