views:

3711

answers:

2

How to clear browser cache with php?

+4  A: 
header("Cache-Control: no-cache, must-revalidate");
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Content-Type: application/xml; charset=utf-8");
ZA
Clearing the cache everytime isn't always the best option though. It might be worth reading up on.
Jon Winstanley
Content-Type here is a red herring.
porneL
+3  A: 

Detailed article for a better understanding of Web Caches: Caching Tutorial for Web Authors and Webmasters

streetpc