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!

Or

Sign up to gain exclusive access to email subscriptions, event invitations, competitions, giveaways, and much more.

Membership is free, and your security and privacy remain protected. View our privacy policy before signing up.

Error: Please check your email address.
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

Toys for Boys

Family Friendly

Stocking Stuffer

Logitech Ultimate Ears Wonderboom Bluetooth Speaker

Learn more >

SmartLens - Clip on Phone Camera Lens Set of 3

Learn more >

Christmas Gift Guide

Click for more ›

Brand Post

Most Popular Reviews

Latest Articles

Resources

PCW Evaluation Team

Maryellen Rose George

Brother PT-P750W

It’s useful for office tasks as well as pragmatic labelling of equipment and storage – just don’t get too excited and label everything in sight!

Cathy Giles

Brother MFC-L8900CDW

The Brother MFC-L8900CDW is an absolute stand out. I struggle to fault it.

Luke Hill

MSI GT75 TITAN

I need power and lots of it. As a Front End Web developer anything less just won’t cut it which is why the MSI GT75 is an outstanding laptop for me. It’s a sleek and futuristic looking, high quality, beast that has a touch of sci-fi flare about it.

Emily Tyson

MSI GE63 Raider

If you’re looking to invest in your next work horse laptop for work or home use, you can’t go wrong with the MSI GE63.

Laura Johnston

MSI GS65 Stealth Thin

If you can afford the price tag, it is well worth the money. It out performs any other laptop I have tried for gaming, and the transportable design and incredible display also make it ideal for work.

Andrew Teoh

Brother MFC-L9570CDW Multifunction Printer

Touch screen visibility and operation was great and easy to navigate. Each menu and sub-menu was in an understandable order and category

Featured Content

Product Launch Showcase

Don’t have an account? Sign up here

Don't have an account? Sign up now

Forgot password?