Make WordPress Core

Ticket #9588: 9588.5.diff

File 9588.5.diff, 1.2 KB (added by Denis-de-Bernardy, 16 years ago)
  • wp-admin/load-styles.php

     
    134134}
    135135
    136136header('Content-Type: text/css');
    137 header('Expires: ' . gmdate( "D, d M Y H:i:s", time() + $expires_offset ) . ' GMT');
     137header('Expires: ' . gmdate( "D, d M Y H:i:s", strtotime(gmdate("Y-m-d H:i:s")) + $expires_offset ) . ' GMT');
    138138header("Cache-Control: public, max-age=$expires_offset");
    139139
    140140if ( $compress && ! ini_get('zlib.output_compression') && 'ob_gzhandler' != ini_get('output_handler') ) {
  • wp-admin/load-scripts.php

     
    124124}
    125125
    126126header('Content-Type: application/x-javascript; charset=UTF-8');
    127 header('Expires: ' . gmdate( "D, d M Y H:i:s", time() + $expires_offset ) . ' GMT');
     127header('Expires: ' . gmdate( "D, d M Y H:i:s", strtotime(gmdate("Y-m-d H:i:s")) + $expires_offset ) . ' GMT');
    128128header("Cache-Control: public, max-age=$expires_offset");
    129129
    130130if ( $compress && ! ini_get('zlib.output_compression') && 'ob_gzhandler' != ini_get('output_handler') ) {