当前位置:首页 >  站长 >  建站经验 >  正文

网页出来慢的原因是什么

 2008-09-03 23:36  来源:   我来投稿 撤稿纠错

  一键部署OpenClaw

     网页出来慢当然是服务器速度慢,但有的网页 调用了多个服务器的内容,想知道具体是哪项内容,例如是那个图片,还是网页的统计,影响了网页的速度?
 
      糖果浏览器有一项功能是能显示 浏览器下载网页的全HTTP协议过程(查看菜单 | 网页内部元素查看器 | 查看HTTP通信过程),可以清楚的看到下载一个图片,htm, js到底用了多少时间,例如 5G的 HTTP协议过程 如下:
 
[Request: ]
[Start time: 46667944]
GET /pagead/abglogo/abg-zh-CN-100c-000000.png HTTP/1.1
Accept: */*
Accept-Encoding: gzip, deflate
 
[Response: ]
[Used time: 0]
HTTP/1.1 200 OK
P3P: policyref=";, CP="NOI DEV PSA PSD IVA PVD OTP OUR OTR IND OTC"
Content-Type: image/png
Content-Length: 1104
Expires: Sat, 30 Aug 2008 11:50:00 GMT
Last-Modified: Thu, 03 May 2007 20:40:03 GMT
 
[Request: ]
[Start time: 46791292]
GET / HTTP/1.1
Accept: */*
Accept-Encoding: gzip, deflate
Accept-Language: zh-cn
 
[Response: ]
[Redirected: 821]
[Used time: 1522]
HTTP/1.1 200 OK
Server: nginx/0.6.32
Date: Fri, 29 Aug 2008 12:43:48 GMT
Content-Type: text/html; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
X-Powered-By: PHP/5.2.6
 
[Request: ]
[Start time: 46792824]
GET /source/script_common.js HTTP/1.1
Accept: */*
Accept-Encoding: gzip, deflate
Referer:
Accept-Language: zh-cn
 
[Response: ]
[Used time: 0]
HTTP/1.1 200 OK
ETag: "5f83ab-1a30-44dca74d9b580"
Content-Length: 6704
Content-Type: application/javascript
Expires: Sat, 30 Aug 2008 06:19:00 GMT
Last-Modified: Thu, 22 May 2008 04:50:46 GMT
 
[Request: ]
[Start time: 46792874]
GET /source/script_menu.js HTTP/1.1
Accept: */*
Accept-Encoding: gzip, deflate
Referer:
Accept-Language: zh-cn
 
[Response: ]
[Used time: 0]
HTTP/1.1 200 OK
ETag: "5f83ad-1d46-44dca74d9b580"
Content-Length: 7494
Content-Type: application/javascript
Expires: Sat, 30 Aug 2008 06:19:00 GMT
Last-Modified: Thu, 22 May 2008 04:50:46 GMT
 
。。。。。。
。。。。。。
。。。。。。

[Used time: 1302]
HTTP/1.1 200 OK
Content-Type: image/jpeg
Content-Length: 2520
Last-Modified: Fri, 29 Aug 2008 10:48:45 GMT
 
[Response: ]
[Used time: 1362]
HTTP/1.1 200 OK
Content-Type: image/jpeg
Content-Length: 2533
Last-Modified: Fri, 29 Aug 2008 07:35:47 GMT
 
[Response: ]
[Used time: 1402]
HTTP/1.1 200 OK
Server: nginx/0.6.32
Date: Fri, 29 Aug 2008 12:43:50 GMT
Content-Type: text/html; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
X-Powered-By: PHP/5.2.6
Set-Cookie: uchome_checkpm=1; expires=Fri, 29-Aug-2008 12:45:33 GMT; path=/
 
[Request: ]
[Start time: 46794757]
GET /click.aspx?id=282448737&logo=12 HTTP/1.1
Accept: */*
Accept-Encoding: gzip, deflate
Referer:
Accept-Language: zh-cn
 
[Response: ]
[Used time: 981]
HTTP/1.1 200 OK
Date: Fri, 29 Aug 2008 12:47:58 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
X-AspNet-Version: 1.1.4322
Cache-Control: private
Content-Type: text/html; charset=gb2312
Content-Length: 1694
 
[Request: ]
[Start time: 46795788]
GET /sa.aspx?id=282448737&refe=&location=http%3A//www.5gme.com/&color=32x&resolution=1024x768&returning=2&language=zh-cn&ua=Mozilla/4.0%20%28compatible%3B%20MSIE%206.0%3B%20Windows%20NT%205.1%3B%20SV1%3B%20Avant%20Browser%3B%20%20EmbeddedWB%2014.52%3B%20EmbeddedWB%2014.52%20from%3A%20http%3A//www.bsalsa.com/%20EmbeddedWB%2014.52%3B%20.NET%20CLR%202.0.50727%3B%20Alexa%20Toolbar%29 HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*
Accept-Encoding
 
[Response: ]
[Used time: 151]
HTTP/1.1 200 OK
Date: Fri, 29 Aug 2008 12:47:58 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
X-AspNet-Version: 1.1.4322
Cache-Control: private
Content-Length: 0
 
总共 49 个http请求/反馈
 
可以看到5G的访问统计用的是 51yes (为何不用Google统计?).  51yes的速度还真是很快呢。

申请创业报道,分享创业好点子。点击此处,共同探讨创业新机遇!

相关文章

热门排行

信息推荐