question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Apparently, the preferred mime-type for javascript is changing...

See original GitHub issue

In this thread, and more specifically here, apparently the long-held preference of application/javascript is switching to text/javascript.

It would be appreciated if this utility would update accordingly.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
dougwilsoncommented, Dec 14, 2022

Hi @broofa , I will let you know. I recently went to make a release, but found nvm is broken for our build. I opened an issue on nvm and the issue is fixed, but nvm has not yet made a release with the fix. I will get a new mime-db releaased as soon as that happens 👍

2reactions
broofacommented, Aug 24, 2018

Interesting. Please file this with the https://github.com/jshttp/mime-db project. That’s where this module pulls it’s MIME definitions from.

Read more comments on GitHub >

github_iconTop Results From Across the Web

mime: change JavaScript type to text/javascript · Issue #32351
TL;DR application/javascript is going to be obsolete and text/javascript will be the recommended mimetype. The media type registrations herein ...
Read more >
When to use the JavaScript MIME type application/javascript ...
The problem with Javascript's MIME type is that there hasn't been a standard for years. Now we've got application/javascript as an official ...
Read more >
65995 – Change JavaScript MIME type from application ...
The default MIME type for JavaScript in Tomcat is application/javascript. This has been obsoleted and should be replaced with ...
Read more >
Windows MIME type detection pitfalls - タリ
It seems that django-debug-toolbar 3.0 started loading the scripts ... its MIME type (“text/plain”) is not a valid JavaScript MIME type.
Read more >
Properly configuring server MIME types - MDN Web Docs
Server default configurations vary wildly and set different default MIME-type values for files with no defined content type.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found