setting expire header in php
by gowtham[ Edit ] 2010-09-17 11:33:04
In PHP File
//s*m*hr*day
$expires = 60*60*24*14;
header("Pragma: public");
header("Cache-Control: maxage=".$expires);
header('Expires: ' . gmdate('D, d M Y H:i:s', time()+$expires) . ' GMT');