Make WordPress Core


Ignore:
Timestamp:
01/03/2015 02:56:14 AM (10 years ago)
Author:
wonderboymusic
Message:

When outputting JS with a Content-Type header:

text/javascript is obsolete, application/x-javascript was experimental. application/javascript is the recommended type per RFC 4329.

Props sergej.mueller.
Fixes #29196.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/load-scripts.php

    r29015 r31029  
    144144}
    145145
    146 header('Content-Type: application/x-javascript; charset=UTF-8');
     146header('Content-Type: application/javascript; charset=UTF-8');
    147147header('Expires: ' . gmdate( "D, d M Y H:i:s", time() + $expires_offset ) . ' GMT');
    148148header("Cache-Control: public, max-age=$expires_offset");
Note: See TracChangeset for help on using the changeset viewer.