0

I am using the following code using PHP,

header("Cache-control: private");
header('Expires: Mon, 26 Jul 2010 05:00:00 GMT');
header("Last-Modified: Mon, 26 Jul 2010 05:00:00 GMT");
header('Cache-Control: no-store, no-cache, must-revalidate, max-age=0');
header('Cache-Control: post-check=0, pre-check=0', FALSE);
header('Pragma: no-cache');

In all browsers it seems to be working fine but not in IE6 unless I hit Ctrl+F5 to forcefully refresh the page. How to stop caching in IE6?

Salman Virk
  • 12,007
  • 9
  • 36
  • 47

2 Answers2

2

Maybe this can help you: You cannot prevent Internet Explorer 6 from caching HTTP pages by using META tags
Or this: IE6 and Caching

Community
  • 1
  • 1
Evgenij Reznik
  • 17,916
  • 39
  • 104
  • 181
0

It's a bug. Check here:

Content with "Content-Encoding: gzip" Is Always Cached Although You Use "Cache-Control: no-cache" http://support.microsoft.com/kb/321722

Disabling gzip compression pretty much fixes it.

You could disable it just of user agents matching "MSIE 6".

Edson Medina
  • 9,862
  • 3
  • 40
  • 51