Private Cache Headers in IE and Mozilla

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux