Ask Leo! by Leo A. Notenboom

What's a browser cache, how do I "clear" it, and why would I want to?

Search First! Then browse: Categories | Full Archive | By Date | Newsletter

Home » Web » Browsers

Summary: "Clear your browser's cache" is a frequent first response when encountering web page problems. We'll look at why, and how.

The browser cache comes up a lot in answers, more than questions, but in doing so it probably causes even more questions. Even when following instructions to clear it, it's not at all clear what this piece of magic really is, and why clearing it would do anything at all.

Let's review the browser cache; what it is, and why it exists. Along the way we'll review the steps to clear it, in both Internet Explorer and Firefox, and try to dream up some reasons why that sometimes helps.

The browser cache exists because of a basic assumption made by the folks who design browsers: the internet is slow. Perhaps more correctly, your internet connection is slower than your computer.

What that means is that it's faster to get something to display from your hard disk than it is to get it "over the wire" by downloading it from the internet. Even with today's faster internet speeds, that still holds very true.

"... it's faster to get something to display from your hard disk than it is to get it 'over the wire' by downloading it ..."

When current browsers were being designed, what people noticed is that many web pages contained the same elements over and over, and many sites had the same elements over and over on all their pages. For example, if you look at this page you'll see a logo at the top of the page. It's actually at the top of every page on this site. So the thinking was basically this: why download the same thing for every page? Why not just download it once, and then keep it so we can use it again if it's needed again?

The cache is nothing more than a place on your hard disk where the browser keeps things that it downloaded in case they're needed again. The first time you visit a page on this site, for example, the browser will download the logo so that it can be shown. Every time thereafter when you visit a different page on the site as long as the same logo is displayed it doesn't need to be downloaded again - it's already here.

The cache has a limit of how big it can get and you can usually configure how much space to set aside for it. Essentially when the cache gets full, the items in it that haven't been used in a while are discarded to make room for whatever new items you're looking at now.

There's a little more to it than that - for example ways for me to update the logo on my site and have that override whatever is in your cache so what you see is always up to date. But by and large, that's all it is: a place to keep things locally so that you don't always have to download the same things over and over and over again.

And it's all transparent to you.

Until something breaks, of course.

And that's where "clearing the cache" comes in.

For reasons that I simply can't explain - other than by saying "stuff happens" - the cache can sometimes get confused. This seems to happen to most browsers, and at random times. What you'll see are partially loaded web pages, badly formatted web pages, incomplete pictures, or in some cases, the wrong picture in the wrong place.

It's not always a caching problem, but since it happens often enough, "clear your browser cache" is often one of the first diagnostic steps you'll hear from people like me.

Here's how.

Internet Explorer

Click on the Tools menu, then the Internet Options menu item. In the resulting dialog box, click on the Delete... button:

Internet Options, highlighting the Delete button in Browsing History

In the resulting "Delete Browsing History" dialog, click on the Delete Files... button:

Delete files... in Delete Browsing History

Finally, click on Yes in the confirmation:

Confirmation to delete your browser cache

Your browser cache is now empty.

FireFox

Click on the Tools menu, Clear Private Data... menu item (or type CTRL+SHIFT+DEL). In the resulting dialog, ensure that the Cache item is checked:

Firefox Options, Clear Private Data dialog, highlighting the cache checkbox

You can of course check other items to be cleared at the same time.

Press Clear Private Data Now.

Your browser cache is now empty.

Your browser cache is empty - so what?

An empty cache means there's no confusion. As you visit web pages hereafter the browser will download fresh copies of everything that you see on each page. Effectively you've simply forced your browser to rebuild its cache from scratch as it loads or re-loads web pages. Any cache-related issues should be cleared up.

Until the next time.

Related:

Helpful? Get new articles weekly by email in my FREE newsletter!

Your Name:
Your Email:


Why Subscribe?

Article C3708 - April 18, 2009

Recent Comments
6 Comments

Browser cache is easy to clear, what about the hidden files as in Content.IE5? especially when one of the files is corrupt and unreadable? Virus scan and Antisyware cannot clean it and I can't run CHKDSK all the way through or Defag until I do a complete Chkdsk. I have gotten right up to the Content.IE5 folders but as soon as I try to delete one the PC freezes up. Can I do something else to get rid of IE5? Thank you, Roberta.

Posted by: Roberta Schatz at April 21, 2009 10:26 AM

You could make frequent use of Ccleaner.

It may take too long though if you hear the Feds battering down your front down and shouting Catch as cache can!

Posted by: ed reid at April 21, 2009 10:46 AM

Leo, if, I am not mistaken, there is another part to 'controlling' the Cache. Deleting the Temporary Internet Files does a great job, but most users are unaware that there is a 'setting' that helps 'control' the Cache, so it doesn't get TOO big!

It is in Internet Explorer's Options, on the first page, under Browsing History. Look at the button that says, 'Settings'. By Default, Internet Explorer sets this setting quite high, usually way into the 1500MBs and higher, when all that is really needed is no more than 250MBs. I know that making sure my setting is set at 250MB, I can do lots of surfing and my PC doesn't slow down much, at all.

There is also a 'setting' in Firefox. It is a little harder to find. Open up the Tools option, at the top of the browser. Click on the Advanced button, then click on the Network button. On that section, you will see where you can 'set' the amount you want to 'cache'. I also, set my Firefox at 250MB. It simply works and keeps me going with both Internet Explorer and Firefox.

Posted by: MmeMoxie at April 21, 2009 6:51 PM

I use Firefox, but I also have Internet Explorer installed, but never use it. My question is this: Why, when I clear my private data every time I close Firefox, there are cookies, temporary internet files, and data in Internet Options? I'm assuming Internet Options is connected to IE, but I don't use IE. So, I've made it a habit to clear both Firefox and IE's Internet Options.

Posted by: Anne at April 21, 2009 8:35 PM

For those of us not hooked on IE or Firefox, like us Opera users for example, here's a link that covers most all browsers showing you how to empty your cache.

http://www.wikihow.com/Clear-Your-Browser's-Cache

http://www.geocities.com/terryhollett2003/

Posted by: Terry Hollett at April 22, 2009 5:00 AM

One reason that the cache becomes corrupted (bad content, out of date content, etc) is because the cache validation settings on the browser may be (inappropriately) set to allow this... in fact, this is the default setting in IE. The safe (dare I say correct ;-) setting is to set IE's frequency to "every time I visit the web page". The default setting of "automatic" allows an infrequently changed file to be used in an out of date state.

Posted by: Nicholas Gimbrone at April 22, 2009 8:03 PM

Post a comment on "What's a browser cache, how do I "clear" it, and why would I want to?":






(Email Address will not be published.)

Remember Me?

By popular demand...
my tip jar
Cuppa Joe
Buy Leo a Latte!

(you may use HTML tags for style)

RSS feed Subscribe to the RSS Feed specifically for comments on this article.

Before commenting, please...

  • Read the article at the top of this page. If your comment shows you didn't, it'll be deleted and ignored.

  • Comment only on this article. Use the Google search box at the top of the page if you have a question about something else.

  • Don't include personal information in the comment. No email addresses. No phone numbers. No physical addresses.

  • Don't spam. Excessive links to unrelated sites within a comment or across multiple comments will cause all such comments to be removed.

  • Don't ask me to recover lost passwords or hacked accounts. I can't, and those comments will be deleted.

  • I can't respond to every comment. And I can't vouch for the accuracy of others who do.

Please wait. Your comment is being processed ...


Question? Ask Leo!