Page 1 of 1

Turning off caching of webpage

Posted: Thu Mar 02, 2006 12:57 am
by jaymoore_299
I do not want my pages cached, but instead completely reloaded for every visit. How do I set cache off with php?

Posted: Thu Mar 02, 2006 11:11 am
by John Cartwright

Code: Select all

header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past