mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
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:
parent
138f82ef8e
commit
64ce4ce861
1 changed files with 12 additions and 0 deletions
|
@ -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');
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue