PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Saturday, June 25, 2022

[FIXED] How to clear DNS cache in google chrome

 June 25, 2022     caching, dns, google-chrome, reverse-proxy     No comments   

Issue

On Linux Debian 10 (Buster), I am using the http(s) client google-chrome-stable.

I was configuring (nginx) and testing (chrome) a reverse proxy and it got cached using a wrong domain.

I fixed the configuration but it still resolve to the wrong domain.

  • I have tried to go chrome://net-internals/#dns and click on Clear host cache but that didn't change anything.
  • I have tried to go chrome://net-internals/#sockets and click on Flush socket pools but that didn't change anything.

I am not working with FireFox, so FireFox can resolve correctly (so does curl).

After about 10 minutes, without restarting chrome. I did F5 (refresh) and it was loading the proper page. I haven't found a manual way to immediatly clear chrome cache.

I am doing devops and I haven't solved this issue for years.

Would love to know how to do one day :O


Solution

What happens if you open developer console F12 and then hold down on the refresh button and then select empty cache and hard reload?

Take a look at this gif for an example.



Answered By - Andrew Rogers
Answer Checked By - Terry (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing