Why you should clear your web browser cache and how to do it.
If your web development team has made changes to the files that comprise your live website, they may have asked you to “clear your cache” afterwards.
What is my “cache” and why should I clear it?
Any website you visit is composed of dozens, hundreds or even thousands of files. Even websites optimised for speed are loading a lot of files at once to display content in your browser.
Browsers try to do their part to speed up the loading process. The first time you visit a site, your browser will “save” pieces of the site. Because your browser can display the files stored in its cache much faster than it can pull fresh files from a server, the next time you visit the site, the cached files will help reduce page load time.
Why have you asked me to remove the saved files?
Many times web developers have to make updates to the files on your site in order to change or update your site information. If we change a file that your browser has cached, it’s going to keep serving the old, cached version of the file and you won’t see our most recent change. That’s why we ask you to clear your cache.
For example: we might make a change to your site, but you’re unable to see that change because your browser is still serving up the cached version of that resource. Or, the cache might have become corrupted and is interfering with the proper functioning of a web page.
For these reasons, a good first step whenever you encounter an issue on your own site (or someone else’s site) is to clear your browser cache. It won’t always fix the issue – but it is an important first diagnostic step to rule out before you assume that a more complicated issue is causing problems.
You’d be surprised how often what you think is a “huge” website bug is actually just a caching issue that goes away as soon as you clear your browser cache.
How to clear a browser cache
Here we’ll show you how to clear the browser cache of most major browsers. If you want to quickly skip to the “how”, you can click one of the links below, otherwise, we’ll start at the beginning.
-
How to Force Refresh a Single Page for All Browsers
-
How to Clear Browser Cache for Google Chrome
-
How to Clear Browser Cache for Firefox
-
How to Clear Browser Cache for Safari
-
How to Clear Browser Cache for Internet Explorer
-
How to Clear Browser Cache for Microsoft Edge
-
How to Clear Browser Cache for Opera
How to force refresh a single page
Before you go straight to clearing your entire browser cache, one trick you can try is something called a “force refresh”. Normally, when you refresh a page, your browser still serves up the cached version of the page, rather than downloading all of the assets again. But you can actually bypass the cache and force a complete refresh by using some simple hotkeys:
- Windows and Linux browsers: CTRL + F5
- Apple Safari: SHIFT + Reload toolbar button
- Chrome and Firefox for Mac: CMD + SHIFT + R
Again, this method only bypasses the cache for the specific page that you’re on. It leaves the rest of your browser cache untouched. Therefore, this option is great if you’re experiencing issues with just a single page. But if you want to completely reset your experience (say, across an entire site), you’re better off just clearing your entire browser cache.
How to clear browser cache for Google Chrome
To clear the browser cache for Google Chrome, get started by clicking the Three Dots icon in the top right of your browser window. Then, find the More Tools option and select Clear browsing data… from the submenu.
Alternatively, you can also use the hotkey combination: CTRL + SHIFT + DEL. Chrome will open up a new tab with a popup window titled Clear Browsing Data. Make sure that only the Cached images and files box is checked. Otherwise, you might accidentally clear your browsing history, saved passwords, cookies, and more.
You can also change the timeframe at the top, though usually the default of 4 weeks is perfectly fine. Then, click the Clear browsing data button to clear your cache.
Your Chrome browser cache is now empty.
How to clear browser cache for Firefox
To clear the browser cache for Firefox, get started by clicking the Hamburger icon in the top right and selecting History.
Then, in the menu that appears next, select Clear Recent History.
You can also access the menu by using the shortcut: CTRL + SHIFT + DEL. Firefox will then open a popup. In the Time range to clear: drop-down, select Everything. Then, make sure to only check the Cache box to avoid clearing important browsing data. Then, click Clear Now to clear your cache.
Your Firefox browser cache is now empty.
How to clear browser cache for Safari
To clear the browser cache for Safari, you have two options. If you’re ok with clearing your entire browsing history (including cookies and visited pages), you can take the easy approach and just go to Safari → Clear History.
Again – this method takes a scorched earth approach. In addition to your browser cache, it will also clear your browsing history, cookies, etc. To only empty Safari’s browser cache, you’ll need to enable the Develop menu by going to Preferences → Advanced and checking the Show Develop Menu in Menu Bar.
Then, you can go to Develop → Empty Caches to clear Safari’s browser cache.
Your Safari browser cache is now empty.
How to clear browser cache for Internet Explorer
To clear the browser cache for Internet Explorer, get started by clicking the Gear icon in the top right to access the Tools menu. Then, find Safety and select Delete Browsing History…from the submenu.
You can also access the menu by using the shortcut: CTRL + SHIFT + DEL. Internet Explorer will open a popup. Make sure to only select the Temporary Internet files and website files box to avoid clearing important information. Then, click the Delete button at the bottom.
Your Internet Explorer browser cache is clear!
How to Clear Browser Cache for Microsoft Edge
To clear the browser cache for Microsoft Edge, click the Three Dots icon in the top right of your browser window.
Scroll down and click on Choose what to clear.
Make sure to only select the Cached data and files box to avoid clearing important information. You can also access the menu by using the shortcut: CTRL + SHIFT + DEL. Then, click the Clear button at the bottom.
Your Microsoft Edge browser cache is now empty!
How to Clear Browser Cache for Opera
To clear the browser cache for Opera, click the Opera icon in the top left, find the More Tools option, and select Clear browsing data from the submenu.
For most cases, you should set Obliterate the following items from: equal to at least the last 4 weeks. Then, make sure to only check the Cached images and files box and then click the Clear browsing data button.
Your Opera browser cache is now empty!