资源解释为其他但使用MIME类型text / javascript传输? [英] Resource interpreted as other but transferred with MIME type text/javascript?
问题描述
我一直得到资源解释为其他但使用MIME类型文本/ javascript传输。,但一切似乎都运行正常。这似乎只发生在Mac上的Safari 4中。
I keep getting "Resource interpreted as other but transferred with MIME type text/javascript.", but everything seems to be working fine. This only seems to be happening in Safari 4 on my Mac.
我被建议添加meta http-equiv =content-script-键入content =text / javascript
到标题,虽然没有做任何事情。
I was advised to add "meta http-equiv="content-script-type" content="text/javascript"
to the header, although that did nothing.
推荐答案
获取错误的最常见方法是使用以下代码:
The most common way to get the error is with the following code:
<img src="" class="blah" />
空白网址是当前网页网址的快捷方式,因此会发出重复请求它返回内容类型html。浏览器期待一个图像,但是获取html。
A blank url is a shortcut for the current page url, so a duplicate request is made which returns content type html. The browser is expecting an image, but instead gets html.
这篇关于资源解释为其他但使用MIME类型text / javascript传输?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!