IE7 always keep a cache of the visited pages

2007 Mar 29

The new version Internet Explorer 7 has a problem in caching of the displayed specially if you are using some ajax applications. Even if you have use the meta tags that specifies no cache, the IE7 would ignore them.



The above code does not work on IE7. You could force the browser to remove the cache by manually deleting it or by using the following code below in PHP:

// choose a date in the past
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
// set the last modified date to today
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
// if the browser supports HTTP/1.1
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
// if the browser supports HTTP/1.0
header("Pragma: no-cache");

Another way is to add the meta tag code below in between your end body tag and your end html tags. It does not conform to the w3c standards, but it works. :D





Tweet this post

2 Comments

HOW do you manually remove or edit out entries in the CACHE in IE7?

I find no file titled CACHE. Any idea where I would find it?

Many thanks!

@Esteban Internet Explorer cache are hidden. you won't be able to find them in normal folder browsing but its there. Just in case you did not know, i use cache interchangeably with Temporary Internet Files folder. In Windows XP its located at

C:\Documents and Settings\[[USER FOLDER]]\Local Settings\Temporary Internet Files

Leave a comment


About Me


Alfredo Sanchez is an internet professional focusing on the study search engines behavior in particular. Supports Free Open Source Software and currently develops applications with it using XAMPP.

Recent Entries

Close