From 64ce4ce86188e633cdcf64f97edb962b2905c84a Mon Sep 17 00:00:00 2001 From: Graham Eames Date: Sun, 29 Jan 2006 21:19:02 +0000 Subject: [PATCH] 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 --- phpBB/admin/page_header_admin.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/phpBB/admin/page_header_admin.php b/phpBB/admin/page_header_admin.php index b761b4b86a..3f8435405b 100644 --- a/phpBB/admin/page_header_admin.php +++ b/phpBB/admin/page_header_admin.php @@ -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');