Debug message “Resource interpreted as other but transferred with MIME type application/javascript”

前端 未结 15 2041
旧巷少年郎
旧巷少年郎 2020-11-29 01:50

OK, I understand what the messages means, but I\'m really not sure what\'s causing it. I\'m using Safari and the Web Inspector on Mac OS X, by the way.

I\'v

15条回答
  •  青春惊慌失措
    2020-11-29 02:34

    You need to use a tool to view the HTTP headers sent with the file, something like LiveHTTPHeaders or HTTPFox are what I use. If the files are sent from the webserver without a MIME type, or with a default MIME type like text/plain, that might be what this error is about.

提交回复
热议问题