diff --git a/phpBB/includes/page_header.php b/phpBB/includes/page_header.php index 1d86caa5f8..3b03050c95 100644 --- a/phpBB/includes/page_header.php +++ b/phpBB/includes/page_header.php @@ -462,17 +462,17 @@ else } // Add no-cache control for cookies if they are set -$c_no_cache = (isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_sid']) || isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_data'])) ? 'no-cache="set-cookie", ' : ''; +//$c_no_cache = (isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_sid']) || isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_data'])) ? 'no-cache="set-cookie", ' : ''; // 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: ' . $c_no_cache . 'no-cache, pre-check=0, post-check=0, max-age=0'); + header ('Cache-Control: no-cache, pre-check=0, post-check=0, max-age=0'); } else { - header ('Cache-Control: ' . $c_no_cache . 'private, pre-check=0, post-check=0, max-age=0'); + header ('Cache-Control: private, pre-check=0, post-check=0, max-age=0'); } header ('Expires: ' . gmdate('D, d M Y H:i:s', time()) . ' GMT'); header ('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');