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

default MIME type for JavaScript to text/javascript according to RFC9239 #3027

Closed
Jxck opened this issue Jun 1, 2022 · 0 comments
Closed

Comments

@Jxck
Copy link
Contributor

Jxck commented Jun 1, 2022

RFC 9239: Updates to ECMAScript Media Types published and it recommends MIME Type for JavaScript be text/javascript

current implementations should use text/javascript as the only JavaScript/ECMAScript media type.
--- https://www.rfc-editor.org/rfc/rfc9239#section-6.2.1-3.6

Now h2o sets default content-type for .js files to application/javascript which obsoleted in this spec.

and also .mjs

kazuho added a commit that referenced this issue Jun 2, 2022
change mime map for .js/.mjs to text/javascript align with RFC9239 solves #3027
@kazuho kazuho closed this as completed Jun 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants