Title: gh-92626: Correct JavaScript MIME types + extensions per RFC 9239 by mathiasbynens · Pull Request #92627 · python/cpython · GitHub
Open Graph Title: gh-92626: Correct JavaScript MIME types + extensions per RFC 9239 by mathiasbynens · Pull Request #92627 · python/cpython
X Title: gh-92626: Correct JavaScript MIME types + extensions per RFC 9239 by mathiasbynens · Pull Request #92627 · python/cpython
Description: 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]. cpython already had an entry for .mjs (great!), but it was using the obsolete MIME type. IANA template: https://www.iana.org/assignments/media-types/text/javascript Issue: #92626
Open Graph Description: 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...
X Description: 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...
Opengraph URL: https://github.com/python/cpython/pull/92627
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:e911e46c-23b7-bb7e-9eb0-5e85f1ee0f58 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 86A6:24B4CE:72E957:9C0831:6969DF94 |
| html-safe-nonce | b11fc0d726549d2c06de4c355c07a524b3ffe81848621ef1d6c99df59f3a71d7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NkE2OjI0QjRDRTo3MkU5NTc6OUMwODMxOjY5NjlERjk0IiwidmlzaXRvcl9pZCI6IjY2OTc1MzM4NDY2NjE0ODg1MzIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | d00907890a671717c42c491bfa7c855436f824d84298e65b88989595d9b41004 |
| hovercard-subject-tag | pull_request:932535233 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/92627/files |
| twitter:image | https://avatars.githubusercontent.com/u/81942?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/81942?s=400&v=4 |
| og:image:alt | 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... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7b32f1c7c4549428ee399213e8345494fc55b5637195d3fc5f493657579235e8 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | bdde15ad1b403e23b08bbd89b53fbe6bdf688cad |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width