uttam Posted July 7, 2006 Share Posted July 7, 2006 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...ThanksUttam ;D Quote Link to comment https://forums.phpfreaks.com/topic/13958-clearing-catche/ Share on other sites More sharing options...
number9dream Posted July 7, 2006 Share Posted July 7, 2006 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 headerhttp://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. ;) Quote Link to comment https://forums.phpfreaks.com/topic/13958-clearing-catche/#findComment-54598 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.