Correct JavaScript MIME types + extensions per RFC 9239#77
Closed
mathiasbynens wants to merge 1 commit intonginx:masterfrom
Closed
Correct JavaScript MIME types + extensions per RFC 9239#77mathiasbynens wants to merge 1 commit intonginx:masterfrom
mathiasbynens wants to merge 1 commit intonginx:masterfrom
Conversation
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
Author
|
Related PRs: |
Member
|
Hi! Thank you for your contribution. Pull requests on GitHub are not accepted - unfortunately we have no way of turning them off. The proper way to submit changes to nginx is via the nginx development mailing list, see https://nginx.org/en/docs/contributing_changes.html |
Author
|
Thank you @thresheek. I’ve sent the patch to the mailing list here: https://mailman.nginx.org/archives/list/nginx-devel@nginx.org/thread/7PN54GRH2S4ESBBTUTGZDXEKPEZGCWOJ/ |
|
https://github.com/apache/httpd/blob/ee3449d71e1187ad5432afde6c53418a32ae73ea/CHANGES#L174-L177 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:Second, the
.mjsextension is now explicitly registered:IANA template: https://www.iana.org/assignments/media-types/text/javascript