Re: Browser keeps caching

"" <itsramon@xxxxxxxxx> wrote in message

I have a problem with Internet Explorer (v7). It's not my favorite
browser, but you do have to test your websites in it.

In my browser, I have selected the cache option "Every time I visit the
In the PHP code I included:

header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Expires: Mon, 1 Jan 2000 00:00:00 GMT"); // Date in the past
header("Pragma: no-cache");

Still I need to refresh the page with Ctrl-F5, pressing just F5 returns an
old version of the page.

Do I miss something here?


i'm not sure this is still an issue with IE, but their website used to say
that to 'ensure' a page wasn't cached in IE you would need to set the
headers and at the bottom of the page somewhere, include a meta tag for
cache as well. they gave a long explanation for this, but i really don't,
nor care to, remember. it's just one of those things you have to work with.

either way and having said all of that, there is NO guarantee in ANY browser
that your server's request to not cache a page's content will be honored.