Ticket #9588: 9588.5.diff
File 9588.5.diff, 1.2 KB (added by , 16 years ago) |
---|
-
wp-admin/load-styles.php
134 134 } 135 135 136 136 header('Content-Type: text/css'); 137 header('Expires: ' . gmdate( "D, d M Y H:i:s", time() + $expires_offset ) . ' GMT');137 header('Expires: ' . gmdate( "D, d M Y H:i:s", strtotime(gmdate("Y-m-d H:i:s")) + $expires_offset ) . ' GMT'); 138 138 header("Cache-Control: public, max-age=$expires_offset"); 139 139 140 140 if ( $compress && ! ini_get('zlib.output_compression') && 'ob_gzhandler' != ini_get('output_handler') ) { -
wp-admin/load-scripts.php
124 124 } 125 125 126 126 header('Content-Type: application/x-javascript; charset=UTF-8'); 127 header('Expires: ' . gmdate( "D, d M Y H:i:s", time() + $expires_offset ) . ' GMT');127 header('Expires: ' . gmdate( "D, d M Y H:i:s", strtotime(gmdate("Y-m-d H:i:s")) + $expires_offset ) . ' GMT'); 128 128 header("Cache-Control: public, max-age=$expires_offset"); 129 129 130 130 if ( $compress && ! ini_get('zlib.output_compression') && 'ob_gzhandler' != ini_get('output_handler') ) {