What MIME type should I use for JavaScript source-map files? What MIME type should I use for JavaScript source-map files? javascript javascript

What MIME type should I use for JavaScript source-map files?


application/json is the best mimetype for sourcemap files.

application/octet-stream might work well with browser devtools, however this mimetype is a signal to browsers to initiate a download. This may cause problems for tools like performance analysis tooling or JS exception tracking that attempt to make sense of the source maps.