两个具有重复 etag 的 URL 是否会将其表示形式视为可交换?
两个具有相同 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
不。 Steve Clay 解决了这个问题。
No. Steve Clay addresses this very question.
不会。给定的 URL 在浏览器的缓存中拥有自己的 ETag 条目。
No. A given URL has its own ETag entry in the browser's cache.
我不这么认为,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.