两个具有重复 etag 的 URL 是否会将其表示形式视为可交换?

发布于 2024-07-23 06:22:37 字数 161 浏览 7 评论 0原文

两个具有相同 etag 的 URL 的表示形式是否会被视为可交换?

例如,如果我有两个图像 A.gif 和 B.gif,并且由于某种原因 GET /A.gif 和 GET /B.gif 都产生相同的 etag 标头,则 A.gif 偶尔会被替换为 B.gif 在客户端的浏览器,反之亦然?

Will two URLs that both give the same etag have their representations treated as swappable?

For example if I have two images A.gif and B.gif and for some reason GET /A.gif and GET /B.gif both result in the same etag header, will A.gif occasionally be replaced by B.gif in the client's browser and vice versa?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(3

计㈡愣 2024-07-30 06:22:37

不会。给定的 URL 在浏览器的缓存中拥有自己的 ETag 条目。

No. A given URL has its own ETag entry in the browser's cache.

深者入戏 2024-07-30 06:22:37

我不这么认为,etag 告诉浏览器是否从服务器获取图像,或者使用该图像的缓存版本。 它的行为不像某种哈希。

i dont think so, etag tells the browser whether to fetch the image from server, or to use the cached version of THAT image. it does not act like some sort of a hash.

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