New set of cache control headers, will these work, who knows?

git-svn-id: file:///svn/phpbb/trunk@2440 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
the_systech 2002-03-26 17:47:15 +00:00
parent cac37dfb8e
commit 18b76c9335

View file

@ -468,12 +468,18 @@ else
$template->assign_block_vars('switch_enable_pm_popup', array());
}
}
header ('Cache-Control: private, no-cache, must-revalidate, pre-check=0, post-check=0, max-age=0');
header ('Pragma: no-cache');
header ('Expires: ' . gmdate('D, d M Y H:i:s', time()) . ' GMT');
if ( $HTTP_SERVER_VARS['REQUEST_METHOD'] == 'POST' )
{
header ('Cache-Control: private, must-revalidate, max-age=25');
}
else
{
header ('Cache-Control: private, no-cache, must-revalidate, pre-check=2, post-check=2, max-age=25');
header ('Pragma: no-cache');
header ('Expires: ' . gmdate('D, d M Y H:i:s', time()) . ' GMT');
}
header ('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
$template->pparse('overall_header');
?>
?>