当2个页面内容相似时如何计算带宽?

发布于 2025-01-17 06:39:04 字数 179 浏览 2 评论 0原文

我有两个页面:Page1Page2。 在这两个页面上,我有相同的图像: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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

这个俗人 2025-01-24 06:39:04

如果您使用的是 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)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文