PDA

View Full Version : Auto-Refresh???


wert
11-14-2002, 10:56 PM
Hi, there is an option in the internet explorer 6 that checs for a newer version of the storaged pages every visit to the page,
Is there any way to do it with php??
I mean an function, or something?

brothercake
11-15-2002, 11:16 AM
Send out these headers at the top of each page (before <html>), and it will never cache:

<?
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
?>