|
From: Jonathan H. <the...@us...> - 2002-03-26 17:47:20
|
Update of /cvsroot/phpbb/phpBB2/includes
In directory usw-pr-cvs1:/tmp/cvs-serv30356
Modified Files:
page_header.php
Log Message:
New set of cache control headers, will these work, who knows?
Index: page_header.php
===================================================================
RCS file: /cvsroot/phpbb/phpBB2/includes/page_header.php,v
retrieving revision 1.103
retrieving revision 1.104
diff -C2 -r1.103 -r1.104
*** page_header.php 22 Mar 2002 18:46:31 -0000 1.103
--- page_header.php 26 Mar 2002 17:47:15 -0000 1.104
***************
*** 469,479 ****
}
}
!
! 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');
header ('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
$template->pparse('overall_header');
! ?>
\ No newline at end of file
--- 469,485 ----
}
}
! 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');
! ?>
|