Chrome Dev Tools - “Size” vs “Content”

前端 未结 4 1112
别跟我提以往
别跟我提以往 2020-11-28 02:11

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

4条回答
  •  暗喜
    暗喜 (楼主)
    2020-11-28 02:19

    Size is the size of response itself, and Content is the size of resource, that you are accessing.

    Compare:

    empty cache:

    main.js GET 200 OK .. Size: 31.72KB Content: 31.42KB

    cached:

    main.js GET 304 Not modified .. Size: 146B Content: 31.42KB

提交回复
热议问题