Hi there,
this might help....
On all the pages i run, I call a function like so
cache_control(900);
Where 900 is the time in secs for the page to be cached. Setting it to 0 wont cache it. This has worked wonders for me.
Cache_control was found in the comments section of http://www.php.net/manual/function.header.php
so I am not the author.
function cache_control($maxage=0) {
$Modified = "Last-modified: ".gmdate("D, d M Y H:i:s", time())." GMT";
$Expires = "Expires: ".gmdate("D, d M Y H:i:s", time() + $maxage)." GMT";
$CacheControl = "Cache-Control: must-revalidate, max-age=".$maxage.", ";
$CacheControl.= "s-max-age=".$maxage;
Header($CacheControl);
Header($Modified);
Header($Expires);
}
Remember, you have to call the function before anything is outputtet to the browser.
Good luck,
Jens