短评 · ·

X 归档 2022-05-07

1 条动态 · 图 0 · 视频 0
RFC 9239 updates JavaScript MIME type registrations to align with reality.

➡️ The JavaScript MIME type is now unambiguously `text/javascript`.
➡️ `.mjs` is now a registered extension, specifically for JavaScript modules.

https://www.rfc-editor.org/rfc/rfc9239

🧵
RFC 9239 更新了 JavaScript MIME 类型的注册信息,使其与现实一致。

➡️ JavaScript 的 MIME 类型现在明确为 `text/javascript`。
➡️ `.mjs` 现在是正式注册的扩展名,专用于 JavaScript 模块。

https://www.rfc-editor.org/rfc/rfc9239

🧵