• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can't prevent Iframe HTML from caching data (in FireFox)

#1
[eluser]taewoo[/eluser]
Hey everyone.
I have an iframe which is dynamically generated.

So the way it works...
1) JavaScript data is defined in parent window.
2) A JS passes the data to the iframe
3) Iframe (written in CI, of course) pases the variable to its JS functions...

What i'm seeing is that between steps 2 and 3... somehow JS variable are being cached. In step 3, the variables are TOTALLY different.

In the iframe HTML, I've tried adding:

Code:
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<meta http-equiv="expires" content="FRI, 13 APR 1999 01:00:00 GMT">

This works with IE, but not firefox.

Then in the controller, (in addition above the above HTML in the corresponding view page) i tried adding:

Code:
$this->output->set_header("HTTP/1.0 200 OK");
$this->output->set_header("HTTP/1.1 200 OK");
$this->output->set_header('Last-Modified: '.gmdate('D, d M Y H:i:s', mktime()).' GMT');
$this->output->set_header("Cache-Control: no-store, no-cache, must-revalidate");
$this->output->set_header("Cache-Control: post-check=0, pre-check=0", false);
$this->output->set_header("Pragma: no-cache");

This combo also works in IE, but not firefox.

Can anyone help?


Messages In This Thread
Can't prevent Iframe HTML from caching data (in FireFox) - by El Forum - 03-24-2008, 12:49 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.