Changeset 1037
- Timestamp:
- 03/31/2004 04:14:20 AM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-blog-header.php
r1036 r1037 101 101 102 102 if (!empty($request_headers['If-Modified-Since'])) { 103 if (strtotime($request_headers['If-Modified-Since']) <= strtotime($last_modified_date)) {103 if (strtotime($request_headers['If-Modified-Since']) >= strtotime($last_modified_date)) { 104 104 $_match_ifmodifiedsince = 1; 105 105 } else { … … 108 108 } 109 109 if (!empty($request_headers['If-None-Match'])) { 110 if ($request_headers['If-None-Match'] == md5($last_modified_date)) {110 if ($request_headers['If-None-Match'] == '"'.md5($last_modified_date).'"') { 111 111 $_match_ifnonematch = 1; 112 112 } else { … … 116 116 117 117 // if one element is present but doesn't match the header, the -1 makes this <=0 118 if ($_match_ifmodifiedsince + $_match_ifnonematch ) {118 if ($_match_ifmodifiedsince + $_match_ifnonematch > 0) { 119 119 header("HTTP/1.1 304 Not Modified\n\n"); 120 120 }
Note: See TracChangeset
for help on using the changeset viewer.