Internet & Web

How to Clear Your Browser Cache

A clear, friendly guide to what your browser cache is, why clearing it fixes common problems, and how to do it without losing what matters to you.

A laptop showing a browser settings page open on a tidy desk in soft daylight
Photograph via Unsplash

Clearing your browser cache means deleting the local copies of images, scripts, and stylesheets your browser saved to load sites faster. It fixes one specific class of problem: a single site showing you a stale, broken, or half-updated version of itself. In almost every desktop browser you start the same way — press Ctrl+Shift+Delete (Cmd+Shift+Delete on a Mac) — and the one setting that matters is ticking "Cached images and files" while leaving cookies and passwords alone.

That last distinction is where most people go wrong, so it is worth getting straight before you touch anything.

Cache vs cookies vs site data: what you are actually deleting#

Your browser stores at least three separate things, and the clearing screen lets you remove them independently:

  • Cached images and files — the static assets (logos, CSS, JavaScript, fonts) copied from sites so they do not re-download every visit. This is the cache. Deleting it never logs you out.
  • Cookies and other site data — small tokens that keep you signed in, remember your cart, and hold preferences. Delete these and you will be signed out of most sites.
  • Browsing history, saved passwords, autofill — your record of visited pages and stored credentials, separate again.

The single most common mistake is ticking everything, wiping cookies and passwords along with the cache, and then being annoyed at getting logged out of a dozen sites for a problem that only needed the cache cleared. If your goal is fixing a broken layout or an outdated page, clear the cache only.

Why does a cache go stale in the first place? When a server sends a file, it attaches HTTP headers like Cache-Control: max-age=86400, which tells your browser "reuse this copy for 24 hours without asking." If the site pushes a fix inside that window, your browser keeps serving the old file until the timer expires or you force the issue. A related header, the ETag, lets the browser ask "has this changed?" and get a lightweight 304 Not Modified back — efficient, but occasionally the reason a supposedly updated page will not budge.

The fast fix most people skip: a hard refresh#

Before clearing anything, try a hard refresh, which forces the current page to re-download its files while leaving the rest of your cache and all your logins intact.

  • Windows / Linux (Chrome, Edge, Firefox): Ctrl+Shift+R or Ctrl+F5
  • Mac (Chrome, Edge, Firefox): Cmd+Shift+R
  • Safari (Mac): hold Shift and click Reload, or Cmd+Option+R

A hard refresh solves the majority of "this one page looks wrong" cases in a single keystroke. Another zero-risk diagnostic: open the site in a private/incognito window (Ctrl+Shift+N in Chrome and Edge, Ctrl+Shift+P in Firefox). Private windows ignore your existing cache, so if the site works there, you have confirmed the cache is the culprit and can clear it with confidence.

Clearing the cache in each browser#

Chrome and Edge (desktop)#

Chrome and Edge run on the same Chromium engine, so the steps are nearly identical.

  1. Press Ctrl+Shift+Delete (Cmd+Shift+Delete on Mac), or go to Settings > Privacy and security > Delete browsing data (Edge calls it Clear browsing data).
  2. Set the Time range. "All time" clears everything; "Last hour" is plenty for a problem that started minutes ago.
  3. Tick Cached images and files only. Leave Cookies and other site data and Passwords unchecked.
  4. Click Delete data / Clear now.

Firefox (desktop)#

  1. Go to Settings > Privacy & Security > Cookies and Site Data, then Clear Data.
  2. Tick Temporary cached files and pages and untick Cookies and site data.
  3. Click Clear. (Ctrl+Shift+Delete also works but bundles in more options.)

Safari (Mac)#

Safari hides its cache-only option. Turn on the developer tools first: Safari > Settings > Advanced > tick "Show features for web developers." Then use Develop > Empty Caches (Cmd+Option+E). The everyday Safari > Clear History command also wipes cookies and history, so reach for Empty Caches when you want to keep your logins.

Mobile browsers#

  • Chrome (Android): three-dot menu > Delete browsing data > tick Cached images and files.
  • Chrome (iOS): three-dot menu > Delete Browsing Data.
  • Safari (iOS/iPadOS): there is no cache-only button. Settings > Apps > Safari > Advanced > Website Data lets you swipe to delete one site's cache; Clear History and Website Data removes everything at once.

Clearing just one site (usually the smarter move)#

Wiping your entire cache to fix one misbehaving site is overkill — it slows down every other site while their caches rebuild. Target the offender instead. In Chrome or Edge, click the tune or padlock icon at the left of the address bar > Site settings > Delete data. Or open DevTools (F12), right-click the reload button, and choose Empty Cache and Hard Reload. That command clears only the current site's cached files and reloads it fresh, leaving everything else untouched. If you keep DevTools open, ticking "Disable cache" in its Network tab stops the browser caching at all while you test.

When the cache is not the problem — and the service worker trap#

If every site is slow, the cache is almost certainly innocent; look at your Wi-Fi, router, or connection. If one site is down for everyone (check a status page or ask someone else to load it), clearing does nothing on your end. And the browser cache is not the same as your DNS cache — a "server not found" error is a DNS or network issue, cleared separately at the operating-system level.

The sneakiest case is a Progressive Web App (PWA) or any site running a service worker — a background script that caches whole pages so the site works offline. A normal cache clear often leaves the service worker running, so the stale version comes right back. To truly reset it, open DevTools > Application > Service Workers > Unregister, or use DevTools > Application > Storage > Clear site data. Web apps like X, the Spotify web player, and many news sites rely on service workers, which is exactly why they sometimes seem immune to an ordinary cache clear.

Common mistakes to avoid#

  • Selecting "All time" and every checkbox when cache-only and "Last hour" would do — you lose logins for nothing.
  • Clearing the cache on a schedule as "maintenance." It only makes sites slower for a while as they rebuild; there is no lasting benefit.
  • Assuming a cache clear speeds things up. The cache makes sites faster; emptying it temporarily does the opposite.
  • Forgetting service workers, then blaming the browser when a PWA refuses to update.

FAQ#

Does clearing the cache delete my passwords?#

No — as long as you tick only "Cached images and files" and leave passwords and cookies unchecked. Saved passwords live in a separate store. You only lose them if you deliberately select the passwords option on the clearing screen.

Will I be logged out of my accounts?#

Not if you clear the cache alone. Logins are held in cookies, which are a different checkbox. If you also tick "Cookies and other site data," then yes, expect to sign back in almost everywhere.

How often should I clear my cache?#

Only when a specific site misbehaves — a broken layout, an outdated page, or a form that will not submit after the site was updated. There is no benefit to doing it routinely, and it slows browsing while caches rebuild.

I cleared the cache and the site is still broken. Now what?#

Try a hard refresh, then check for a service worker (DevTools > Application > Service Workers > Unregister) or use "Clear site data." Confirm the site is not down for everyone, restart the browser, and make sure it is up to date. If the trouble survives all that, the problem is on the site's end, not yours.

Priya Nadar
Written by
Priya Nadar

Priya translates the fast-moving world of AI and the internet into things you can actually use and understand. She's curious but skeptical, quick to separate genuine progress from hype, and keen to help readers use new tools wisely rather than fearfully.

More from Priya