Ticket #28722: trunk.patch
File trunk.patch, 1.3 KB (added by , 10 years ago) |
---|
-
wp-admin/load-styles.php
134 134 } 135 135 } 136 136 137 $md5_file = md5($out); 138 139 if ( $md5_file === filter_input(INPUT_SERVER, 'HTTP_IF_NONE_MATCH', FILTER_SANITIZE_STRING) ) { 140 header('HTTP/1.1 304 Not Modified'); 141 exit(); 142 } 143 144 header('Etag: ' .$md5_file); 137 145 header('Content-Type: text/css; charset=UTF-8'); 138 146 header('Expires: ' . gmdate( "D, d M Y H:i:s", time() + $expires_offset ) . ' GMT'); 139 147 header("Cache-Control: public, max-age=$expires_offset"); -
wp-admin/load-scripts.php
143 143 $out .= get_file($path) . "\n"; 144 144 } 145 145 146 $md5_file = md5($out); 147 148 if ( $md5_file === filter_input(INPUT_SERVER, 'HTTP_IF_NONE_MATCH', FILTER_SANITIZE_STRING) ) { 149 header('HTTP/1.1 304 Not Modified'); 150 exit(); 151 } 152 153 header('Etag: ' .$md5_file); 146 154 header('Content-Type: application/x-javascript; charset=UTF-8'); 147 155 header('Expires: ' . gmdate( "D, d M Y H:i:s", time() + $expires_offset ) . ' GMT'); 148 156 header("Cache-Control: public, max-age=$expires_offset");