CodeIgniter Forums
Caching Issue in IE 6 - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: Caching Issue in IE 6 (/showthread.php?tid=24161)



Caching Issue in IE 6 - El Forum - 11-02-2009

[eluser]Unknown[/eluser]
In my Application We click the link add page from listing Page. In add Page after the successful insertion of values. It should be again redirected into listing Page. In listing Page all records are fetched and listed.

In Mozilla after successful insertion of values it shows the existing records and newly inserted record.

But in IE6 it not shows the updated record in listing Page


Caching Issue in IE 6 - El Forum - 11-02-2009

[eluser]imn.codeartist[/eluser]
Man, IE always has a problem :-(


Caching Issue in IE 6 - El Forum - 11-02-2009

[eluser]Phil Sturgeon[/eluser]
Code:
// Disable sodding IE7's constant cacheing!!
        $this->CI->output->set_header('HTTP/1.0 200 OK');
        $this->CI->output->set_header('HTTP/1.1 200 OK');
        $this->CI->output->set_header('Expires: Sat, 01 Jan 2000 00:00:01 GMT');
        $this->CI->output->set_header('Cache-Control: no-store, no-cache, must-revalidate');
        $this->CI->output->set_header('Cache-Control: post-check=0, pre-check=0, max-age=0');
        $this->CI->output->set_header('Last-Modified: ' . gmdate( 'D, d M Y H:i:s' ) . ' GMT' );
        $this->CI->output->set_header('Pragma: no-cache');