样式表Javascript无法加载Firefox

Stylesheet Javascript wont load Firefox

本文关键字:加载 Firefox Javascript 样式      更新时间:2023-09-26

好吧,我知道这是一个荒谬的问题,但我真的到处找,我不知道该怎么办。在Firefox或IE上,我的css和js文件将正确加载。是的,我删除了我的缓存和cookie和其他所有东西,但没有任何变化,不知道为什么…

网站:ic-marketing.com

有人知道发生了什么事吗?

谢谢

嗯,我检查了请求,我的结论是你的服务器有问题。

对css文件的请求在Firefox中不接收数据。但是标题看起来不错。

这是Firefox

的响应头
Accept-Ranges:"bytes"
Connection:"keep-alive"
Content-Encoding:"x-deflate"
Content-Length:"99961"
Content-Type:"text/css"
Date:"Sun, 25 May 2014 02:23:29 GMT"
Last-Modified:"Sat, 24 May 2014 16:06:41 GMT"
Server:"nginx/1.6.0"

还有来自Google Chrome的响应头

Accept-Ranges:bytes
Connection:keep-alive
Content-Encoding:x-deflate
Content-Length:99961
Content-Type:text/css
Date:Sun, 25 May 2014 02:19:04 GMT
Last-Modified:Sat, 24 May 2014 16:06:41 GMT
Server:nginx/1.6.0

它们是相同的。唯一的区别是Firefox没有内容。

所以,我通过cUrl测试请求。

这是基于Google Chrome请求的请求头。

curl 'http://ic-marketing.com/css/bootstrap.min123.css' 
-H 'Pragma: no-cache' 
-H 'Accept-Encoding: gzip,deflate,sdch' 
-H 'Accept-Language: pt-BR,pt;q=0.8,en-US;q=0.6,en;q=0.4' 
-H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.137 Safari/537.36' 
-H 'Accept: text/css,*/*;q=0.1' 
-H 'Referer: http://ic-marketing.com/' 
-H 'Connection: keep-alive' 
-H 'Cache-Control: no-cache' --compressed

它会把css文件…

所以,我做了一个像cUrl这样的Firefox

curl 'http://ic-marketing.com/css/bootstrap.min123.css'
-H 'Host: ic-marketing.com'
-H 'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:29.0) Gecko/20100101 Firefox/29.0' 
-H 'Accept: text/css,*/*;q=0.1' 
-H 'Accept-Language: en-US,en;q=0.5' 
-H 'Accept-Encoding: gzip,deflate' 
-H 'Referer: http://ic-marketing.com/' 
-H 'Connection: keep-alive' --compressed

它给我带来了一个cPanel错误说"404 - PAGE NOT FOUND"。

这是因为Firefox请求有这个header

-H 'Host: ic-marketing.com'

这个报头导致请求崩溃。但是,为什么呢?

嗨,你有一个js错误加载,IE不像别人那么严格

<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min123.js"></script>
相关文章: