Technology in terms you understand. Sign up for the Confident Computing newsletter for weekly solutions to make your life easier. Click here and get The Ask Leo! Guide to Staying Safe on the Internet — FREE Edition as my thank you for subscribing!

What Is a Browser Cache? How Do I Clear It?

And why would you want to?

Clearing your browser cache is the first thing to try when you encounter webpage problems. I'll look at why and how to clear your cache.
The Best of Ask Leo!

Cache

The browser cache appears in more answers than questions, but it often causes even more questions.

Even while following instructions to empty the cache, many people aren’t clear on what this piece of magic is or why clearing the cache does anything.

Let’s review what the browser cache is and why it exists. I’ll also point you to steps to clear it in Edge, Firefox, and Chrome, and posit some reasons why it sometimes helps.

Become a Patron of Ask Leo! and go ad-free!

TL;DR:

The browser cache

Web browsers assume the internet is slow. Since many websites use the same elements (like logos) on multiple pages, browsers download them only on the first encounter so they need not be downloaded every time. The cache is where these downloaded elements are kept. Sometimes the browser loses track of what’s in the cache, resulting in display problems. Each browser allows you to clear the cache to start over, hopefully resolving those issues.

Caching

The cache exists because of a basic assumption made by browser designers: the internet is slow.

More accurately, your internet connection is slower than your computer.

It’s faster to get something from your hard disk than it is to get it from the internet. Even with today’s internet speeds, that still holds true.

Browser designers noticed that most websites repeat many elements on multiple pages. For example, if you look at the top of this page, you’ll see the Ask Leo! logo. It’s at the top of every page on this site. So the thinking was, why download the same logo over and over for every page? Why not just download it once and keep a copy so we can display it again without downloading it every time? That would speed things up.

That’s the browser cache. It’s nothing more than a place on your hard disk where the browser keeps things it downloaded once in case they’re needed again.

The first time you visit any page on this site, the browser downloads the logo and several other items into the cache, and then displays it as part of the page you’re viewing. For each additional page you visit, as long as the same logo is displayed, it doesn’t need to be downloaded again — it’s already on your hard disk.

The cache has a size limit, which you can usually configure. When the cache gets full, the items in it that haven’t been used in a while are discarded to make space for items you’re using now.

Naturally, there’s more to it than that. For example, there are ways for me to update the logo on my site and have that override whatever is in your cache so you always see the most current version. But by and large, that’s all it is: a place to keep things locally so you don’t have to download the same things over and over again.

And it all happens without your knowledge.

Until something breaks.

Clearing the cache

Clearing the cache just means to empty it. The next time you display a webpage, everything must be downloaded anew.

For reasons I can’t explain other than by saying “Stuff happens”, the cache sometimes gets confused. This seems to happen to all browsers and at random times. You’ll see partially loaded or badly formatted webpages, pages that should update but don’t, incomplete pictures, or even the wrong picture in the wrong place.

It’s not always a caching problem, but because it happens often enough, “Clear your browser cache” is one of the first steps you’ll hear from people like me when you have a problem with a website.

I’ve put together instructions for the most popular browsers.

An empty browser cache

Your browser cache is empty. Why is that helpful?

An empty cache means there’s no confusion. As you visit webpages thereafter, the browser downloads fresh copies of everything you see on each page. You’ve forced your browser to rebuild its cache from scratch as it loads or re-loads pages. Any cache-related issues should be cleared up.

Until the next time.

Do this

When you encounter problems in your browser, clearing your browser’s cache should be one of your first diagnostic steps. It’ll be one of my first recommendations if you don’t.

There’s a good chance it’ll clear up whatever problem you’re having. If not, then at least we’ll know to look elsewhere.

After you clear your cache, subscribe to Confident Computing! Less frustration and more confidence, solutions, answers, and tips in your inbox every week.

 

Podcast audio

Play

5 comments on “What Is a Browser Cache? How Do I Clear It?”

  1. Hi Leo,
    When loading some websites – I need to refresh the cache constantly. For example, when I upload my own website, to see the latest version, I need to refresh cache – like rinse & repeat over and over. This happens with Firefox & Chrome. Is it possible that something else is preventing some websites from updating their cache files? Like maybe an addon or something?
    Thanks!

    Reply
    • This is a possible workaround.
      In my experience, in all browsers, CTRL+F5 refreshes the page bypassing the cache, and works in many cases where you would normally have to clear the cache. This might be faster than clearing the cache each time.

      Reply
  2. The linked articles about how to clear the cache for specific browsers are out-of-date. The menus and choices for Firefox and Edge are completely different on October 24, 2023.
    I THINK I was able to figure it out, but updating those articles would be good for the people I send to your channel and site.

    Reply

Leave a reply:

Before commenting please:

  • Read the article.
  • Comment on the article.
  • No personal information.
  • No spam.

Comments violating those rules will be removed. Comments that don't add value will be removed, including off-topic or content-free comments, or comments that look even a little bit like spam. All comments containing links and certain keywords will be moderated before publication.

I want comments to be valuable for everyone, including those who come later and take the time to read.