Sunday, September 27, 2009

Squid缓存PHP页面方法


header('Cache-Control: max-age=600, must-revalidate');
header('Pragma: cache');
header('Last-Modified: ' . date('D, d M Y H:i:s') . ' GMT');
header('Expires: ' . date ("D, d M Y H:i:s", time() + 600). " GMT");

No comments:

Post a Comment