Jump to content


clearing catche

  • Please log in to reply
1 reply to this topic

#1 uttam

  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 07 July 2006 - 03:55 PM

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...

Uttam ;D

#2 number9dream

  • Members
  • PipPip
  • Member
  • 16 posts

Posted 07 July 2006 - 11:16 PM

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

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. ;)

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users