IETF RFC 9239 requires Javascript MIME type to be text/javascript

Created on 4 June 2022, over 2 years ago
Updated 1 February 2023, over 1 year ago

Problem/Motivation

IETF published https://www.ietf.org/rfc/rfc9239.pdf

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.

AFAICS, Drupal uses the now deprecated application/javascript in its internals and in MIME type guessing.

Proposed resolution

Adjust Drupal to reflect the standard.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

📌 Task
Status

Fixed

Version

10.1

Component
File system 

Last updated 1 day ago

Created by

🇮🇹Italy mondrake 🇮🇹

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024