When a website looks broken, shows old content or refuses to log you in, the first advice you will hear is “clear your cache and cookies”. It often works, but many people do not know what those words mean or what they lose when they clear them. This guide explains both and shows how to do it safely.
What is the browser cache?
The cache is a local storage area where your browser keeps copies of files from websites you visit, such as images, stylesheets and scripts. The next time you visit, the browser loads these files from your device instead of downloading them again, which makes pages load faster and saves data.
What are cookies?
Cookies are small pieces of data a website stores in your browser. They remember that you are logged in, keep items in a shopping basket, store language preferences and, in some cases, track your activity across sites. See our article on how online ads work for the tracking side.
When you should clear them
- A page displays outdated content or looks visually broken
- A website keeps failing to log you in or shows redirect loop errors
- You are troubleshooting a problem for a single site
- You are selling or giving away a computer, or using a shared computer
- Your browser feels sluggish after months of use
When you do not need to
Clearing everything on a schedule is unnecessary. The cache exists to make browsing faster, and deleting it all the time makes sites load slower. Cookies also keep you signed in, so deleting them frequently means logging in again everywhere, including two-step verification steps.
What you will lose
- You will be signed out of most websites.
- Saved site preferences, such as dark mode or language, may reset.
- Shopping baskets on some sites may empty.
- The first visit to each site will load a bit slower while the cache refills.
Passwords saved in your browser or password manager are separate and are not deleted unless you choose to include them. Make sure you can log in to important accounts before you clear cookies.
How to clear cache and cookies in Chrome and Edge
- Press Ctrl + Shift + Delete (Cmd + Shift + Delete on Mac).
- Choose a time range, such as the last hour or the last 24 hours, instead of all time when you only need to fix a recent problem.
- Tick Cookies and other site data, and Cached images and files.
- Click Delete data.
How to clear in Firefox
- Press Ctrl + Shift + Delete.
- Select the time range and tick Cookies and Cache.
- Click OK.
How to clear in Safari on Mac
- Open Safari settings, then Privacy, and click Manage Website Data to remove data for specific sites.
- To clear the cache, enable the Develop menu in Advanced settings and choose Empty Caches.
On Android and iPhone
In Chrome for Android, open the three-dot menu, then History, then Clear browsing data. On iPhone, open Settings, Safari, then Clear History and Website Data. Choosing a shorter time range and selecting only what you need keeps your other logins.
Clear it for just one site
In Chrome and Edge, click the icon beside the address bar, open Site settings and choose Clear data. This is often the best first step because it fixes the problem without signing you out everywhere. A hard refresh with Ctrl + Shift + R also forces the browser to download fresh files for the current page.
If clearing does not fix it
- Try a private window to rule out extensions.
- Disable extensions one by one to find the culprit.
- Update your browser to the latest version.
- Try another browser to see if the problem belongs to the site or your setup.
- Check your connection and DNS (see changing your DNS server).
Final thoughts
Cache and cookies are helpful tools that occasionally cause problems. Clear them selectively, start with one site and a short time range, and only go for a full wipe when you really need it.