WordPress.org

Make WordPress Core

Ticket #9588: 9588.11.diff

File 9588.11.diff, 603 bytes (added by Denis-de-Bernardy, 5 years ago)
  • wp-includes/functions.php

     
    15291529        $expiresOffset = 864000; // 10 days 
    15301530        header( "Content-Type: text/javascript; charset=" . get_bloginfo( 'charset' ) ); 
    15311531        header( "Vary: Accept-Encoding" ); // Handle proxies 
    1532         header( "Expires: " . gmdate( "D, d M Y H:i:s", time() + $expiresOffset ) . " GMT" ); 
     1532        header( "Expires: " . gmdate( "D, d M Y H:i:s", strtotime(gmdate("Y-m-d H:i:s")) + $expiresOffset ) . " GMT" ); 
    15331533} 
    15341534 
    15351535/**