dhonnoll78
19th December 2007, 04:58
My web pages for www.missionnicaragua.net keep getting cached and for very long times. How do I code my pages to keep that from happening?
volksman
19th December 2007, 15:30
This may help:
http://www.htmlgoodies.com/beyond/reference/article.php/3472881
white.wizard
17th January 2008, 22:22
From php manual about header function:
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
// always modified
header("Cache-Control: no-store, no-cache, must-revalidate"); // HTTP/1.1
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache"); // HTTP/1.0
This should do the trick.
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.