Chrome devtools 网络选项卡显示与缓存资源文件大小相同的“通过网络传输的数据”值。如果我阻止上图中出现的最后一个请求,则不会加载图片,但第二个请求仍然显示传输了相同数量的数据。如何知道图像资源是否真正从缓存中提取并节省了带宽?
注意:我正在使用 max-age 缓存控制策略,并且在 Firefox 中它显然有效。
caching cache-control http-headers google-chrome-devtools max-age
cache-control ×1
caching ×1
google-chrome-devtools ×1
http-headers ×1
max-age ×1