Jump to content

clearing catche


uttam

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
Link to comment
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. ;)
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.