Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the correct mime type for .min.map javascript source files?

Tags:

javascript

plain/text or application/json?

I am unable to locate any mention of it, my google-fu is weak today.

It does not mention it in this Source Map Revision document that I can see. https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit?hl=en_US&pli=1&pli=1

like image 451
learningEverything4000 Avatar asked Sep 15 '13 06:09

learningEverything4000


People also ask

What is MIME type for all files?

Use "application/octet-stream" for the "All files (*)" filter, since that is the base MIME type for all files.

How do you specify the MIME type of a file?

3.2. Another way to get the MIME type of a file is by reading its content. We can determine the MIME type according to specific characteristics of the file content. For example, a JPG starts with the hex signature FF D8 and ends with FF D9. This is slower than the file extension approach due to the extra I/O efforts.

What is MIME type example?

MIME types enable browsers to recognize the filetype of a file which has been sent via HTTP by the webserver. As a result the browser is able to choose a suitable displaying method. Common MIME types are for example text/html for html-files or image/jpeg for jpeg-files.


1 Answers

Google's JavaScript CDN serves jQuery's source map as application/json.

enter image description here

like image 183
Trevor Dixon Avatar answered Nov 05 '22 10:11

Trevor Dixon