Fi conditional get caching when server-timezone offset is != 0
This commit is contained in:
parent
58a683eb00
commit
1ce4265402
@ -3,6 +3,9 @@
|
|||||||
Version 1.1-beta2 ()
|
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
|
* Added ability to use HTTP Authentication to the blog. Can be
|
||||||
triggered by submitting HTTP Auth credentials [only supported when
|
triggered by submitting HTTP Auth credentials [only supported when
|
||||||
the server runs with mod_php, not as CGI]. Authentication can be
|
the server runs with mod_php, not as CGI]. Authentication can be
|
||||||
|
2
rss.php
2
rss.php
@ -50,7 +50,7 @@ if (!isset($_GET['nocache'])) {
|
|||||||
// See if the client has provided the required headers.
|
// 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
|
// 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'])
|
$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;
|
: false;
|
||||||
$none_match = !empty($_SERVER['HTTP_IF_NONE_MATCH'])
|
$none_match = !empty($_SERVER['HTTP_IF_NONE_MATCH'])
|
||||||
? str_replace('"', '', stripslashes($_SERVER['HTTP_IF_NONE_MATCH']))
|
? str_replace('"', '', stripslashes($_SERVER['HTTP_IF_NONE_MATCH']))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user