How do I clear the DNS cache for my Chrome browser?

Source: Internet
Author: User
Tags browser cache

This is a problem that bothers me for a long time. I developed front-end code under the Mac, and since HTML5 development became the focus of work, Chrome has gradually replaced Firefox as the preferred browser.

As a front-end dever, switching the local host environment is a natural and frequent matter, such as www.dunhuang.com the domain name is in the local environment a while to the QA environment, while pointing to the production environment. Windows and Mac have a lot of host switch tools, you can go to NPM to find some modules to do this, or simply use node. js to write a host switch tool ... This is not the focus of this article.

However, there is a big problem with Chrome browser. Its DNS cache is very strong (especially in the version of Mac systems). I looked up a lot of information and found that even though the browser cache was manually forcefully cleared, 80 seconds (or 70 seconds after the last valid access). No exact source found) access to the same address, Chrome will still have a DNS cache.

That is, if you want the new host to take effect, you have to endure more than a minute to access your destination URL. This is not too much for us to be eager to see the results.

After a lot of information, I found the method, and tried to be good, to share to you:

Enter the following address in the Chrome address bar and click the "Flush Socket Polls" button

Chrome://net-internals/#sockets

Then, enter the following address in the Chrome address bar and click the "Clear Host Cache" button

Chrome://net-internals/#dns

Done!

How do I clear the DNS cache for my Chrome browser?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.