-
-
Notifications
You must be signed in to change notification settings - Fork 303
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
Change content-type to text/javascript #223
Comments
I believe that the link above is still a draft, while the official IETF is still documented to use |
Ya, I think you're right @kevin940726. That's why I didn't merge and just opened the PR. Seems like maybe we should use |
@mjackson I like that idea! I think it's the best we can do for now. |
JavaScript files, such as .js and .mjs should be served with the content-type: "text/javascript" (especially ".mjs" files). The type: "application/javascript" is obsolete.
https://datatracker.ietf.org/doc/draft-ietf-dispatch-javascript-mjs/
Chrome enforce this:
The text was updated successfully, but these errors were encountered: