aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorthe_systech <the_systech@users.sourceforge.net>2002-03-26 17:47:15 +0000
committerthe_systech <the_systech@users.sourceforge.net>2002-03-26 17:47:15 +0000
commit18b76c933546a2ac720bca571c6c683bbde02da3 (patch)
treec3a6d6d3fb29271bf2b5f7536ff521157bfb5da3 /phpBB
parentcac37dfb8ef411499a73cacfc3a4813a8bf7414d (diff)
downloadforums-18b76c933546a2ac720bca571c6c683bbde02da3.tar
forums-18b76c933546a2ac720bca571c6c683bbde02da3.tar.gz
forums-18b76c933546a2ac720bca571c6c683bbde02da3.tar.bz2
forums-18b76c933546a2ac720bca571c6c683bbde02da3.tar.xz
forums-18b76c933546a2ac720bca571c6c683bbde02da3.zip
New set of cache control headers, will these work, who knows?
git-svn-id: file:///svn/phpbb/trunk@2440 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/includes/page_header.php16
1 files changed, 11 insertions, 5 deletions
diff --git a/phpBB/includes/page_header.php b/phpBB/includes/page_header.php
index 10c9f4ce52..1d6465f4d1 100644
--- a/phpBB/includes/page_header.php
+++ b/phpBB/includes/page_header.php
@@ -468,12 +468,18 @@ else
$template->assign_block_vars('switch_enable_pm_popup', array());
}
}
-
-header ('Cache-Control: private, no-cache, must-revalidate, pre-check=0, post-check=0, max-age=0');
-header ('Pragma: no-cache');
-header ('Expires: ' . gmdate('D, d M Y H:i:s', time()) . ' GMT');
+if ( $HTTP_SERVER_VARS['REQUEST_METHOD'] == 'POST' )
+{
+ header ('Cache-Control: private, must-revalidate, max-age=25');
+}
+else
+{
+ header ('Cache-Control: private, no-cache, must-revalidate, pre-check=2, post-check=2, max-age=25');
+ header ('Pragma: no-cache');
+ header ('Expires: ' . gmdate('D, d M Y H:i:s', time()) . ' GMT');
+}
header ('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
$template->pparse('overall_header');
-?> \ No newline at end of file
+?>