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

borisdiakurJames A. Rosen提出了一个问题:What MIME type should I use for JavaScript source-map files?,或许与您遇到的问题类似。

回答者Drew NoakesPaul Irish给出了该问题的处理方式:

application/octet-stream is fine.

On the Google CDN we do it as application/json only so you can view source in the browser.

No DevTools actually care what the content-type is, so you can ignore it safely.

希望本文对你有帮助,欢迎支持JavaScript中文网

原文链接:stackoverflow.com

上一篇:custom-guider
下一篇:Is setTimeout a good solution to do async functions with javascript?

公众号

欢迎 JavaScript 爱好者