当2个页面内容相似时如何计算带宽?
我有两个页面:Page1
和 Page2
。 在这两个页面上,我有相同的图像:Image1
。
如果我访问 Page1
并且浏览器缓存了图像,然后我访问 Page2
,浏览器会获取缓存的图像还是会再次下载?
I have two pages: Page1
and Page2
.
On these two pages, I have the same image: Image1
.
If I visit Page1
and the browser cache the image and I then visit Page2
, will the browser get the cached image or will it be downloaded again?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您使用的是 puppeteer 或 selenium 等虚拟浏览器,则可以使用无缓存模式/禁用缓存,这样就不会缓存任何内容。您也可以在浏览器的开发工具中打开它(网络选项卡)
If you're using virtual browser like puppeteer or selenium, you can use no cache mode/disable cache so nothing is cached. You can turn it on at your dev tools of your browser too (the network tab)