Duplicate the no-cache headers from page_header.php to work around an issue affected some webserver/proxies

[Bug #149]


git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@5509 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Graham Eames 2006-01-29 21:19:02 +00:00
parent 138f82ef8e
commit 64ce4ce861

View file

@ -132,6 +132,18 @@ $template->assign_vars(array(
'T_SPAN_CLASS3' => $theme['span_class3'])
);
// Work around for "current" Apache 2 + PHP module which seems to not
// cope with private cache control setting
if (!empty($HTTP_SERVER_VARS['SERVER_SOFTWARE']) && strstr($HTTP_SERVER_VARS['SERVER_SOFTWARE'], 'Apache/2'))
{
header ('Cache-Control: no-cache, pre-check=0, post-check=0');
}
else
{
header ('Cache-Control: private, pre-check=0, post-check=0, max-age=0');
}
header ('Expires: 0');
header ('Pragma: no-cache');
$template->pparse('header');