欢迎各位兄弟 发布技术文章

这里的技术是共享的

You are here

Chrome Dev Tools - “Size” vs “Content”

shiping1 的头像

When viewing information about stylesheets in the Network tab of Chrome's dev tools, one column specifies both "size" and "content":

Screenshot of dev tools with Size/Content column highlighted

Can anybody shed light on the difference between these two numbers? On some pages the numbers are close and others they are different by a considerable amount.
 

 

yes answer  "Size" is the number of bytes on the wire, and "content" is the actual size of the resource. A number of things can make them different, including:

  • 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)


来自 http://stackoverflow.com/questions/8072921/chrome-dev-tools-size-vs-content

普通分类: