How do you clear cached redirects in Chrome?
I changed the DNS for a domain name and when I go to mydomain.com. Even though ping mydomain.com now shows it resolves to the correct IP, if I type in "mydomain.com" into Chrome, it still redirects to , which was a redirect automatically setup by the old webhost.
Clearing Chrome's browser cache has no effect, and Chrome seems to ignore /etc/hosts. I tried using a "different" URL, like mydomain.com?123, but Chrome still redirects to . Is this a bug or is there someway to clear whatever cache Chrome uses to save 301 redirects?
6 Answers
On desktop Chrome, deleting the last hour of browsing history works, so long as you've followed the redirect within the last hour.
On Android Chrome, visit chrome://net-internals, click the downward arrow at the top right corner, and choose 'clear cache'. That is the only solution I found for Chrome on Android.
I had a similar issue with a site still re-directing to and found the 'clear cache' via internals to work.
Redirects can be caused by a variety of things - caching by your browser, your system, the network, the site configuration itself and any in between steps.
In addition to clearing browsing history and cookies, I also tried the answers from Clear cache for specific domain name in chrome - I suggest trying answers in order of increasing complexity (e.g. start with what you're happiest with and if that doesn't work, try one of the more tricky solutions)
From
After opening up the developer tools (usually by pressing F12) Click + Hold on the "Reload Page" button. From the popup list, choose "Empty Cache and Hard Reload".
From
1Here's how to delete Chrome's cookies selectively by domain or subdomain:
* go tochrome://settings/content/cookies
* type the domain name in the search box
* click delete
The only method that worked from me is using Development tools an check on disable cache and the redirection were gone :)
Go to chrome://net-internals/#dns and click the Clear Host Cache button
If it's an 301 redirect Chrome will cache it. To clear the cache, go to:
Chrome Menu > Settings > Show advanced settings... > Privacy > Click Clear browsing data... 2 On chromium 88 chrome://settings/clearBrowserData
Check "Cached images and files" and click "Clear Data"