Browser caching explained

Caches are everywhere -- on your motherboard, on your processor, on your hard drive -- but unless you're an avid reader of manuals and online help files you might not be sure what they are.

A cache (usually pronounced "cash") is an intermediate storage area designed for speed of access. We humans "cache" things too, in a sense. Take office stationery, for example. There's probably a stationery cupboard somewhere in your building, which, if it's well maintained, contains all the pens, envelopes and toner cartridges you are ever likely to need. But you don't walk down the hall every time you need an envelope. To save time, you keep a small supply of the items you use most frequently in your desk drawer. That drawer is your cache.

For a Web browser, the stationery cupboard might be a Web server several 1000 kilometres away across a slow modem link. The desk drawer is a folder on your hard drive which stores copies of the pages you visit most often.

Browsers manage their caches more or less automatically, so there's often no need to intervene. But if you are looking for top performance, you might want to make a few adjustments:

1. Adjust the cache size. The efficiency of your browser's cache depends largely on its size. Obviously, the more files that are stored on your hard drive, the less often your browser will have to fetch pages from Web servers. If you plan to browse offline (that is, while not connected to the Net), a large cache is an obvious advantage, since the page you want to view is more likely to have been cached.

To improve performance, try increasing the cache size. If you are using Internet Explorer 4.x, you can do this by choosing View-Internet Options and selecting the General tab. Then click the Settings button in the Temporary Internet Files section of the dialogue box. Drag the Amount of disk space to use slider to the right to increase the cache size. You can make it as large as you like -- the only limiting factor is the amount of disk space available. In Communicator 4.x, choose Edit-Preferences and, in the Category panel, double-click Advanced. With the Advanced branch expanded, the cache setting will be visible: click it once to view your cache settings. Netscape's default cache size is 7680KB (7.5MB), but you can expand or shrink it by typing a new figure in the Disk Cache field. When the cache size reaches the limit you have defined, the oldest files will be deleted and replaced by new items.

2. Modify caching behaviour. As we've said, once your browser has saved an HTML page to its cache, the file can be retrieved instantly because there's no need for your browser to access the Web server. But what happens if the file on the server changes? You will be left with an outdated version of the file. Fortunately, both IE 4 and Communicator allow you to work around this problem. IE 4's Settings dialogue box lets you choose how often the browser "refreshes" its cache. The last option, Never, is rarely a good choice: select Never and IE 4 will never look for a more recent version of a file. The first option, Every visit to the page, may be the right choice if you habitually view pages that change frequently. Bear in mind, though, that with such frequent checking, you will lose much of the performance benefit of caching. The second option, Every time you start Internet Explorer, is usually the best compromise. The same options (worded slightly differently) are available in Navigator's Preferences dialogue box.

3. Clear the cache. From time to time, you may need to recover a significant amount of disk space to make room for a new application. Or you may have been viewing confidential Web pages that you don't want others to see. In both cases, the solution is to empty the cache. In Internet Explorer, choose View-Internet Options and, on the General tab, click Delete files. To empty the cache, click OK when prompted. In Communicator, choose Edit-Preferences, double-click Advanced and then highlight the Cache option. Click the Clear Disk Cache button and hit OK when prompted.

Join the newsletter!

Error: Please check your email address.
Rocket to Success - Your 10 Tips for Smarter ERP System Selection
Keep up with the latest tech news, reviews and previews by subscribing to the Good Gear Guide newsletter.

Neville Clarkson

PC World
Show Comments

Cool Tech

Breitling Superocean Heritage Chronographe 44

Learn more >

SanDisk MicroSDXC™ for Nintendo® Switch™

Learn more >

Toys for Boys

Family Friendly

Panasonic 4K UHD Blu-Ray Player and Full HD Recorder with Netflix - UBT1GL-K

Learn more >

Stocking Stuffer

Razer DeathAdder Expert Ergonomic Gaming Mouse

Learn more >

Christmas Gift Guide

Click for more ›

Most Popular Reviews

Latest Articles

Resources

PCW Evaluation Team

Walid Mikhael

Brother QL-820NWB Professional Label Printer

It’s easy to set up, it’s compact and quiet when printing and to top if off, the print quality is excellent. This is hands down the best printer I’ve used for printing labels.

Ben Ramsden

Sharp PN-40TC1 Huddle Board

Brainstorming, innovation, problem solving, and negotiation have all become much more productive and valuable if people can easily collaborate in real time with minimal friction.

Sarah Ieroianni

Brother QL-820NWB Professional Label Printer

The print quality also does not disappoint, it’s clear, bold, doesn’t smudge and the text is perfectly sized.

Ratchada Dunn

Sharp PN-40TC1 Huddle Board

The Huddle Board’s built in program; Sharp Touch Viewing software allows us to easily manipulate and edit our documents (jpegs and PDFs) all at the same time on the dashboard.

George Khoury

Sharp PN-40TC1 Huddle Board

The biggest perks for me would be that it comes with easy to use and comprehensive programs that make the collaboration process a whole lot more intuitive and organic

David Coyle

Brother PocketJet PJ-773 A4 Portable Thermal Printer

I rate the printer as a 5 out of 5 stars as it has been able to fit seamlessly into my busy and mobile lifestyle.

Featured Content

Product Launch Showcase

Latest Jobs

Don’t have an account? Sign up here

Don't have an account? Sign up now

Forgot password?