Stubborn DNS Cache? Use "Empty Cache and Hard Reload"
cache browser chromeA lot of us have learned by now the ⌘+⇧+R or Ctrl+Shift+R shortcut to hard reload the page, so that assets cached by the browser are fetched from the internet again. But what if your cache is being particularly stubborn, for example a local DNS cache is still serving an old redirect, and you just want to check if the new site works, without clearing all the caches in your system and network?
That's where the "Empty Cache and Hard Reload" in Chrome comes in, so you can clear the cache just for your current URL. You can access the option in three easy steps:
-
Open the chrome developer tools
(⌥+⇧+I or View → Developer → Developer Tools or Right click → Inspect)
-
Right click the refresh icon
-
Click "Empty Cache and Hard Reload" in the menu that appears
That's it! This (usually) clears all caches, so both theassets cache and the local DNS cache would be emptied, and you don't have to wait for any TTLs to expire!