JavaScript MIME type is now unambiguously text/javascript
published on 2022/07/24
After work started on it in August 2017, May 2022 finally saw the publication of RFC 9239 “Updates to ECMAScript media types” by Matthew A. Miller, Myles Borins, Mathias Bynens, and Bradley Farias. It updates JavaScript MIME type registrations to align with reality:
- The JavaScript MIME type is now unambiguously text/javascript.
- .mjs is now a registered filename extension, specifically for JavaScript modules.