mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-09 21:08:53 +00:00
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:
parent
cac37dfb8e
commit
18b76c9335
1 changed files with 11 additions and 5 deletions
|
@ -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');
|
||||
|
||||
?>
|
||||
?>
|
||||
|
|
Loading…
Add table
Reference in a new issue