Jump to content

Archived

This topic is now archived and is closed to further replies.

uttam

clearing catche

Recommended Posts

Hi users,
I want to clear cache from PHP.I've used d following but not working...
Any suggession??

Header("Cache-control: private, no-cache");
Header("Expires: Mon, 26 Jun 1997 05:00:00 GMT");
Header("Pragma: no-cache");

Any help would be helpful...

Thanks
Uttam ;D

Share this post


Link to post
Share on other sites
Presumably you mean the cache in the visitor's web browser?

If so, there are quite a few things you'll need to do, since different browsers give visitors different caching options.

With Internet Explorer, for instance, you might also need a -1 expires header
http://support.microsoft.com/kb/q234067/

The only guaranteed way I know is to send the browser to a different URL (even if that means adding a meaningless query string).

There's no avoiding the fact that a visitor's cache is their own business, and if people really like a cache of pages, then they'll be able to set one within thir browser. ;)

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.