首页 > 其他 > 详细

请求返回时的Size/Content Time/Latency的区别

时间:2015-03-24 12:22:56      阅读:463      评论:0      收藏:0      [点我收藏+]

Size/Content: Size是响应头部和响应体结合起来的大小,Content是请求内容解码后的大小。进一步了解可以看这里Chrome Dev Tools - “Size” vs “Content”

如果是没有浏览器缓存,即status为200,那么size会比content略大,如果有缓存的话,请求时不会有响应体返回,所以size会很小,只包含响应头的大小,而content是资源的大小。

 

Size is the combined size of the response headers (usually a few hundred bytes) plus the response body, as delivered by the server. Content is the size of the resource‘s decoded content. If the resource was loaded from the browser‘s cache rather than over the network, this field will contain the text (from cache).

 

Being served from cache (small or 0 "size")

Response headers, including cookies (larger "size" than "content")

Redirects or authentication requests

gzip compression (smaller "size" than "content", usually)

 

Time/Latency: Time是从请求开始到接收到最后一个字节的总时长,Latency是从请求开始到接收到第一个字节的时间;

请求返回时的Size/Content Time/Latency的区别

原文:http://www.cnblogs.com/lydialee/p/4362075.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!