Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Correct MIME Type for css.map files

looking for a bit of help that will most likely help other devs.

When serving files that are extension .css.map what should their MIME type be?

This problem arose for me when serving files from s3 and in the upload process using boto3, one must set the MIME type for each files using the Python mimetypes library. However mimetypes does not have all newer standards (i.e. '.scss', '.svg', '.js.map'). With that what is the appropriate MIME type for .css.map files?

like image 507
Dylan Stein Avatar asked Aug 11 '26 05:08

Dylan Stein


1 Answers

.css.map files should be application/json

As an educated guess, I will say that .css.map files MIME type should be application/json as determined from the .css.map and .js.map files being returned when navigating to http://getbootstrap.com/

The file is being served from http://getbootstrap.com/assets/css/docs.min.css.map

like image 127
Dylan Stein Avatar answered Aug 12 '26 23:08

Dylan Stein



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!