Forum Moderators: coopster

Message Too Old, No Replies

IE + Cache-control: no cache + OB_GZHANDLER = disaster! Help please?

         

sprockett

4:52 am on May 22, 2006 (gmt 0)



Hi everyone, i have very dynamic website, and i need each page to never ever display stale content, when hitting the back button.

So i implement this:

header("Expires: Sun, 19 Nov 1978 05:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', FALSE);
header('Pragma: no-cache');

which works like a charm.

However, the moment I use

ob_start("ob_gzhandler");

IE starts to display stale content on hitting the back button.

FF still works perfectly.

If i do not use the gzip handler, IE does not display stale data.

Any idea how i can get IE to stop displaying stale data if i use OB_GZHANDLER?

Thanks!

siMKin

3:27 pm on May 22, 2006 (gmt 0)

10+ Year Member



I think this is due to a bug in Internet Explorer:

[support.microsoft.com...]
[support.microsoft.com...]