1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-02-24 12:03:21 +01:00

Added additional cache control headers

git-svn-id: file:///svn/phpbb/trunk@962 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Paul S. Owen 2001-09-01 22:04:44 +00:00
parent d48ebf9e04
commit ccb121a1a5
2 changed files with 6 additions and 0 deletions

View File

@ -155,6 +155,9 @@ $template->assign_vars(array(
"T_SPAN_CLASS3" => $theme['span_class3'])
);
header ("Cache-Control: no-store, no-cache, must-revalidate");
header ("Cache-Control: 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");
header ("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");

View File

@ -286,6 +286,9 @@ if(!$userdata['session_logged_in'])
$template->assign_block_vars("loginbox", array());
}
header ("Cache-Control: no-store, no-cache, must-revalidate");
header ("Cache-Control: 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");
header ("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");