Troubleshooting6 min read

How to Clear Your Browser Cache: Chrome, Edge, Firefox, Safari and Phones

Website looks old or broken after an update? Clear your browser cache in Chrome, Edge, Firefox, Safari, Android or iPhone, step by step and without getting logged out.

Codereyes Team · 6 min read
Clear your browser cache: a step-by-step guide for Chrome, Edge, Firefox, Safari, Android and iPhone

You updated your website, but it still looks the same. A button is in the wrong place, a new photo won't show, or a login page keeps sending you in circles. Nine times out of ten the site is fine. Your browser is showing you an old copy it saved earlier: its cache.

This guide shows how to clear that cache in every major browser, on computers and phones, without losing your saved passwords or getting logged out of every site.

What the browser cache is

To open pages faster, your browser keeps copies of images, styles and scripts from sites you visit. Next time, it reuses them instead of downloading everything again. That's great until a site changes: the browser can keep showing the saved version for hours or days.

Clear the cache when:

  • a website looks broken, half-styled or out of date after an update
  • images, prices or text you changed still show the old version
  • a page keeps loading forever or a login keeps looping
  • our support team asks you to, so we can rule it out

What gets deleted (and what doesn't)

Every browser offers several things to delete at once. For a website that looks wrong, you only need the first one:

  • Cached images and files: the saved copies of pages. Safe to clear; you stay logged in.
  • Cookies and site data: these keep you signed in. Clearing them logs you out of most sites.
  • Browsing history: the list of pages you visited. It doesn't affect how sites look.

Saved passwords are a separate option and are never deleted unless you tick them yourself.

Try a hard refresh first

If only one page looks wrong, reload it while skipping the cache. Open the page and press:

  • Windows and Linux (Chrome, Edge, Firefox): Ctrl + F5 or Ctrl + Shift + R
  • Mac (Chrome, Edge, Firefox): Cmd + Shift + R
  • Safari on Mac: Option + Cmd + R
A hard refresh reloads one page without its saved copy.

Still wrong? Clear the cache for the whole browser, below.

Google Chrome

  1. Click the three dots ⋮ at the top right.
  2. Choose Delete browsing data. Shortcut: Ctrl + Shift + Delete on Windows, Cmd + Shift + Delete on Mac.
  3. Set Time range to All time.
  4. Tick only Cached images and files.
  5. Click Delete data.
Chrome: ⋮ → Delete browsing data → Cached images and files → Delete data. (Illustration)

Microsoft Edge

  1. Click ⋯ (Settings and more) at the top right, then Settings.
  2. Open Privacy, search, and services.
  3. Under Clear browsing data, click Choose what to clear. Shortcut: Ctrl + Shift + Delete.
  4. Pick a Time range, tick only Cached images and files, then click Clear now.
Edge: Settings → Privacy, search, and services → Choose what to clear. (Illustration)

Mozilla Firefox

  1. Click the menu ☰, then Settings.
  2. Open Privacy & Security and scroll to Cookies and Site Data.
  3. Click Clear Data…. Shortcut: Ctrl + Shift + Delete (Cmd + Shift + Delete on Mac).
  4. Tick only the cache option (Temporary cached files and pages; older versions call it Cached Web Content), then click Clear.
Firefox: Settings → Privacy & Security → Cookies and Site Data → Clear Data… (Illustration)

Safari on Mac

Safari hides its "empty cache" button in the Develop menu. Turn it on once:

  1. In the menu bar, choose Safari → Settings, then the Advanced tab.
  2. Tick Show features for web developers (older versions: "Show Develop menu in menu bar").
  3. From the new Develop menu, choose Empty Caches. Shortcut: Option + Cmd + E.
Safari on Mac: turn on the Develop menu once, then Develop → Empty Caches. (Illustration)

Phones and tablets

Chrome on Android

  1. Open Chrome and tap ⋮ next to the address bar.
  2. Tap Delete browsing data, then More options.
  3. Set the time range to All time, tick only Cached images and files and tap Delete data.
Chrome on Android: ⋮ → Delete browsing data → More options. (Illustration)

Safari on iPhone and iPad

  1. Open the Settings app, then Apps → Safari (on older iOS versions, Safari is in the main Settings list).
  2. Tap Clear History and Website Data and confirm.

This also clears your Safari history. To keep the history, go to Safari → Advanced → Website Data and tap Remove All Website Data instead: it removes the cache and cookies only.

iPhone and iPad: Settings → Apps → Safari → Clear History and Website Data. (Illustration)

Clear the cache for one website only

In Chrome and Edge on a computer you can empty the cache for just the site you're on, without touching anything else:

  1. Open the website and press F12 (Cmd + Option + I on Mac) to open the developer tools.
  2. Right-click the reload button ⟳ next to the address bar.
  3. Choose Empty cache and hard reload, then close the developer tools.
One site only: press F12, then right-click reload → Empty cache and hard reload. (Illustration)

Still seeing the old page?

If a private (incognito) window shows the new version but your normal window doesn't, the browser cache is the cause: repeat the steps above with the time range set to All time. If even a private window shows the old version, the copy is being kept somewhere else:

  • A caching plugin on a WordPress site (such as LiteSpeed Cache or WP Rocket): clear it from the plugin's menu in WordPress.
  • A CDN such as Cloudflare: purge the cache in its dashboard.
  • A change that hasn't gone live yet, such as an update saved as a draft or a new domain that's still spreading across the internet (this can take up to 24 hours).

Hosting or care-plan customer? Open a ticket from your client area and tell us which page and browser you're using; we'll clear the server and CDN caches for you.

Filed underTroubleshooting

Share

Written by

The Codereyes team

We design, build and run websites, stores and software — and write down what we learn along the way.

About us

Next step

Want this applied to your site?

Tell us what you are running today — we will point out the changes that matter most.

Start a Project