Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh-92626: Correct JavaScript MIME types + extensions per RFC 9239 #92627

Closed
wants to merge 3 commits into from

Commits on May 10, 2022

  1. Correct JavaScript MIME types + extensions per RFC 9239

    This patch updates the MIME type configuration per RFC 9239.
    https://www.rfc-editor.org/rfc/rfc9239
    
    First, the recommended MIME type is now `text/javascript`:
    
    > The most widely supported media type in use is `text/javascript`; all
    > others are considered historical and obsolete aliases of `text/javascript`.
    
    Second, the `.mjs` extension is now explicitly registered:
    
    > The `.mjs` file extension signals that the file represents a JavaScript
    > module. Execution environments that rely on file extensions to
    > determine how to process inputs parse `.mjs` files using the Module
    > grammar of [ECMA-262].
    
    IANA template: https://www.iana.org/assignments/media-types/text/javascript
    mathiasbynens committed May 10, 2022
    Configuration menu
    Copy the full SHA
    f504def View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e574bf9 View commit details
    Browse the repository at this point in the history

Commits on May 23, 2022

  1. Configuration menu
    Copy the full SHA
    5c788e5 View commit details
    Browse the repository at this point in the history