mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-01 00:10:36 +01:00
Send 304 if If-Modified-Since is >= the most rcent post time. http://mosquito.wordpress.org/view.php?id=582 Props: dougal
git-svn-id: http://svn.automattic.com/wordpress/trunk@2529 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
af7a390c59
commit
5b9e782523
@ -134,8 +134,8 @@ if ( !empty($error) && '404' == $error ) {
|
||||
else $client_etag = false;
|
||||
|
||||
if ( ($client_last_modified && $client_etag) ?
|
||||
(($client_last_modified == $wp_last_modified) && ($client_etag == $wp_etag)) :
|
||||
(($client_last_modified == $wp_last_modified) || ($client_etag == $wp_etag)) ) {
|
||||
((strtotime($client_last_modified) >= strtotime($wp_last_modified)) && ($client_etag == $wp_etag)) :
|
||||
((strtotime($client_last_modified) >= strtotime($wp_last_modified)) || ($client_etag == $wp_etag)) ) {
|
||||
if ( preg_match('/cgi/',php_sapi_name()) ) {
|
||||
header('Status: 304 Not Modified');
|
||||
echo "\r\n\r\n";
|
||||
|
Loading…
Reference in New Issue
Block a user