From 5b9e782523b6fcfd6e462b2773387e2d2fd0eb05 Mon Sep 17 00:00:00 2001 From: ryan Date: Wed, 13 Apr 2005 16:36:46 +0000 Subject: [PATCH] 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 --- wp-blog-header.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-blog-header.php b/wp-blog-header.php index f34d6835b..378194c4a 100644 --- a/wp-blog-header.php +++ b/wp-blog-header.php @@ -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";