Clearing the cache and browsing history

I find myself repeatedly telling my clients to clear their cache and browsing history when I’m developing or just updating a website.

Why? Here’s a little explainer. Your internet browser (Chrome, Firefox, Safari, IE) stores some files from your website to your computer or to your mobile device.

Files that are cached locally include any documents that make up a website, such as html files, CSS style sheets, JavaScript scripts – as well as graphic images and other multimedia content.

What this means is, when you visit your site again some files are not downloaded ‘fresh’. So you see parts of your site which have not been updated, even though they actually have been.

So, to see this fresh content, it’s vital to clear the cache and browsing history. It makes your life easier – and mine.

How to clear the cache

You can use Google to find out, or just click this link:

Sometimes I do implement codes for forcing fresh content, like this:

<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="0" />

But these codes should not be implemented permanently. This is because your website will have a slower loading time, thanks to everything having to be downloaded again. I hope this is helpful.