调试消息“资源被解释为其他但使用 MIME 类型应用程序/javascript 传输" [英] Debug message "Resource interpreted as other but transferred with MIME type application/javascript"
问题描述
好的,我明白这些消息意味着什么,但我真的不确定是什么导致了它.顺便说一下,我在 Mac OS X 上使用 Safari 和 Web Inspector.
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've got the following in my document head:
<script src="http://local.url/a/js/jquery.js" type="text/javascript"></script>
<script src="http://local.url/a/js/jquery.inplace.js" type="text/javascript"></script>
jquery.js
处理得很好,但另一个文件导致了警告.这个文件中的javascript似乎也永远不会被执行.
jquery.js
is handled fine, but the other file causes the warning. It also seems that the javascript in this file never gets executed.
该文件通过 mod_deflate
提供,因此它是 gzip 编码的,但另一个文件也是如此.
The file is being served via mod_deflate
, so it is gzip encoded, but so is the other file.
有没有人知道是什么导致了这种情况,或者如何解决它?
Has anybody got any ideas what's causing this, or how to resolve it?
祝大家,气.
推荐答案
似乎是 safari/webkit 中的一个错误.也许这个,或者任何这些.尝试升级您的 Safari.如果没有更新的稳定版本,请尝试 4 测试版.
seems to be a bug in safari / webkit. maybe this one, or any of these. try upgrading your safari. if there is no more recent stable version, try the 4 beta.
这篇关于调试消息“资源被解释为其他但使用 MIME 类型应用程序/javascript 传输"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!