|
Posted by Eli on 03/20/05 03:53
Hi,
I want to cache a PHP page privately for a week.
What headers should I send to make it work both in Mozilla and IE?
I have set these headers, but those work only for IE:
<?php
$max_age=604800;
header("Date: ".gmdate("D, d M Y H:i:s",time()));
header("Cache-Control: private");
header("Cache-Control: max-age=$max_age",false);
header("Expires: ".gmdate("D, d M Y H:i:s",time()+$max_age)." GMT");
?>
What are the correct headers?
-thanks, Eli
Navigation:
[Reply to this message]
|