4
我遇到了一个问题,其中页面似乎需要大约8秒才能加载,原因不明。Firebug net标签报告的长页面接收时间(页面加载缓慢)
正如你在this screenshot看到,所有的页面加载787-8之前良好,绝大多数的加载时间资源被公布在网页本身的“接收”的阶段。
这是什么原因造成的?
有人建议由于错误的文件编码可能会错误地报告内容长度标题,但检查了标题后,我看不到内容长度集,这可能是原因吗?
一个例子头如下:
Date: Wed, 02 Mar 2011 09:20:42 GMT
Server: Apache
X-Powered-By: PHP/5.2.6
Expires: Mon, 26 Jul 1997 05:00:00 GMT
Last-Modified: Wed, 02 Mar 2011 09:20:42 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
P3P: CP="NON CURa ADMa DEVa TAIa CONi OUR DELa BUS IND PHY ONL UNI PUR COM NAV DEM STA"
Set-Cookie: xid=025d2e1ac48dcb568d4dd35d79a5b726; path=/; domain=www.xxx.xx.xx; httponly
xid=025d2e1ac48dcb568d4dd35d79a5b726; path=/; domain=www.xxx.xx.xx; httponly
Vary: Accept-Encoding,User-Agent
Content-Encoding: gzip
Keep-Alive: timeout=1, max=100
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: text/html; charset=iso-8859-1
(域的Set-Cookie故意消音)
我已经检查另一个网站也不具有内容长度集和出现加载没有任何问题。