mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
Not in 2.0.x ... already present in 2.2 where it can go through the normal beta process ... RFC's are great, but not everything or everyone abides by them ... and unless they are basic protocols we have to deal with the real world :)
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@4074 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
c24b7f81b1
commit
925a38d391
1 changed files with 3 additions and 3 deletions
|
@ -462,17 +462,17 @@ else
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add no-cache control for cookies if they are set
|
// 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
|
// Work around for "current" Apache 2 + PHP module which seems to not
|
||||||
// cope with private cache control setting
|
// cope with private cache control setting
|
||||||
if (!empty($HTTP_SERVER_VARS['SERVER_SOFTWARE']) && strstr($HTTP_SERVER_VARS['SERVER_SOFTWARE'], 'Apache/2'))
|
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
|
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 ('Expires: ' . gmdate('D, d M Y H:i:s', time()) . ' GMT');
|
||||||
header ('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
|
header ('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
|
||||||
|
|
Loading…
Add table
Reference in a new issue