Can't prevent Iframe HTML from caching data (in FireFox) - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Can't prevent Iframe HTML from caching data (in FireFox) (/showthread.php?tid=7079) |
Can't prevent Iframe HTML from caching data (in FireFox) - El Forum - 03-23-2008 [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"> 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 combo also works in IE, but not firefox. Can anyone help? Can't prevent Iframe HTML from caching data (in FireFox) - El Forum - 03-24-2008 [eluser]taewoo[/eluser] I found my own answer: http://www.freshsupercool.com/2008/03/24/firefox-oddities/ Go me! Can't prevent Iframe HTML from caching data (in FireFox) - El Forum - 07-10-2008 [eluser]taewoo[/eluser] Sorry folks... that post moved to here: http://www.freshsupercool.com/2008/07/10/firefox-caching-iframe-data/ |