Knowledgebase article

How to clear your DNS and browser cache

Changed something on your website but still see the old version? Your computer may be holding on to old memories. Here's how to help it let go.

Quick test first

Open your website in a private/incognito window, or on your phone using mobile data (not Wi-Fi). If the new version shows there, it's just your cache.

Clear your browser cache

Chrome / Edge

  1. Press Ctrl + Shift + Delete (Mac: Cmd + Shift + Delete).
  2. Choose Time range: All time.
  3. Tick Cached images and files (and Cookies if you see login problems).
  4. Click Clear data.

Firefox: Ctrl + Shift + Delete, tick Cache, click Clear Now.

Safari (Mac): Safari menu > Settings > Advanced, tick Show features for web developers, then Develop > Empty Caches.

A quick alternative: press Ctrl + Shift + R (Mac: Cmd + Shift + R) to reload a page without its cache.

Clear your DNS cache

This helps after changing nameservers or DNS records.

Windows

  1. Click Start, type cmd, and open Command Prompt.
  2. Type ipconfig /flushdns and press Enter.

Mac

Open Terminal and run:

sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder

Enter your Mac password when asked.

Phones: turn Airplane mode on for 10 seconds, then off.

Chrome's own DNS cache: open chrome://net-internals/#dns and click Clear host cache.

Still the old version?

  • If you use Cloudflare, purge its cache from the Cloudflare dashboard.
  • If you use a WordPress cache plugin (LiteSpeed Cache, WP Rocket, AccelerateWP…), clear its cache too.
  • If you changed nameservers less than 24 hours ago, the internet may still be catching up. See My website isn't showing after changing nameservers.
Was this answer helpful?

Related articles

Still stuck? Romeo's got you.
Our support team replies around the clock, real humans who know your server.