Fi conditional get caching when server-timezone offset is != 0

This commit is contained in:
Garvin Hicking 2006-08-16 08:56:26 +00:00
parent 58a683eb00
commit 1ce4265402
2 changed files with 4 additions and 1 deletions

@ -3,6 +3,9 @@
Version 1.1-beta2 ()
------------------------------------------------------------------------
* Fix a bug in the HTTP 304 Conditional GET RSS-Feed caching when
the server timezone offset was not set to zero. Thanks to dand!
* Added ability to use HTTP Authentication to the blog. Can be
triggered by submitting HTTP Auth credentials [only supported when
the server runs with mod_php, not as CGI]. Authentication can be

@ -50,7 +50,7 @@ if (!isset($_GET['nocache'])) {
// See if the client has provided the required headers.
// Always convert the provided header into GMT timezone to allow comparing to the server-side last-modified header
$modified_since = !empty($_SERVER['HTTP_IF_MODIFIED_SINCE'])
? gmdate('D, d M Y H:i:s \G\M\T', serendipity_serverOffsetHour(strtotime(stripslashes($_SERVER['HTTP_IF_MODIFIED_SINCE'])), true))
? gmdate('D, d M Y H:i:s \G\M\T', strtotime(stripslashes($_SERVER['HTTP_IF_MODIFIED_SINCE'])), true)
: false;
$none_match = !empty($_SERVER['HTTP_IF_NONE_MATCH'])
? str_replace('"', '', stripslashes($_SERVER['HTTP_IF_NONE_MATCH']))