防止Chrome缓存站点的DNS记录 [英] Prevent Chrome from caching a site's DNS records

查看:239
本文介绍了防止Chrome缓存站点的DNS记录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Chrome缓存DNS记录,并且倾向于忽略主机文件成功连接到我的站点后的更改(禁止重新启动)。启用DNS预取功能后,更为显着。

Chrome caches DNS records and tends to ignore changes to the hosts file after it has successfully connected to my site (barring a restart). With DNS pre-fetching enabled, it is even more pronounced.

是否有任何页眉会指示Chrome不会缓存网站的DNS?像缓存控制或响应状态,如 307临时重定向

Are there any page headers that will instruct Chrome not to cache a site's DNS? Like Cache-Control or a response status like 307 Temporary Redirect?

推荐答案

这可能是Google Chrome中的一个真正的错误。我创建了 http://crbug.com/65570 来跟踪它,但请添加您可以想到的任何其他信息对于错误,所以我们确信我们正确地了解您的问题。

This is probably a real bug in Google Chrome. I created http://crbug.com/65570 to track it, but please add any additional information you can think of to the bug so we're sure we understand your problem correctly.

听起来好像除了关闭Chrome之外唯一的办法是拔掉网络电缆,然后插上当Chrome看到这样的事件时,它会丢弃其套接字和dns缓存。当我们看到/ etc / hosts发生变化时,错误的正确解决方案可能会相同。

It sounds as though the only work-around besides closing Chrome is unplugging the network cable and then plugging it back in. When Chrome sees such an event, it drops its socket and dns cache. The correct solution for the bug is likely to do the same when we see /etc/hosts has changed.

如果你想知道错误是否被修复,请转到 http://crbug.com/65570 ,然后点击该错误号旁边的星号。而且,就像我说的,请添加任何额外的信息,你可以对该错误。

If you'd like to know when the bug is fixed, go to http://crbug.com/65570 and click the star next to the bug number. And, like I said, please add any additional information you can to the bug.

这篇关于防止Chrome缓存站点的DNS记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆