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');