git-svn-id: https://develop.svn.wordpress.org/trunk@2579 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg 2005-05-03 04:32:40 +00:00
parent ec343a0155
commit 74af4dfeec

View File

@ -134,7 +134,7 @@ if ( !empty($error) && '404' == $error ) {
else $client_etag = false; else $client_etag = false;
if ( $client_last_modified && $client_etag ) { if ( $client_last_modified && $client_etag ) {
if ( (strtotime($client_last_modified) <= strtotime($wp_last_modified)) || ($client_etag == $wp_etag) ) { if ( (strtotime($client_last_modified) >= strtotime($wp_last_modified)) || ($client_etag == $wp_etag) ) {
if ( preg_match('/cgi/',php_sapi_name()) ) { if ( preg_match('/cgi/',php_sapi_name()) ) {
header('Status: 304 Not Modified'); header('Status: 304 Not Modified');
echo "\r\n\r\n"; echo "\r\n\r\n";