What clearing the cache does, and when you actually need to do it

Clearing your cache removes temporary files your browser and operating system store to load websites and programs faster. Your computer saves copies of images, scripts, and page data so it doesn't have to download them again — but over time this cache can grow large, slow things down, or hold onto data you'd rather delete.

You don't need to clear your cache constantly. Most people benefit from doing it once every few months, or when a website isn't loading correctly, or when you're selling or giving away your computer. Clearing cache won't speed up a slow internet connection — that's a different problem — but it can free up disk space and sometimes fix a website that's stuck showing an old version of a page.

There are two separate caches to know about: your browser cache (what Chrome, Firefox, Safari, or Edge stores) and your system cache (what Windows or macOS stores). You can clear either one independently.

Key Takeaways

  • Browser cache clears through your browser settings in a few clicks; system cache requires different steps depending on whether you use Windows or macOS.
  • Clearing cache frees disk space and can fix websites that won't load correctly, but won't speed up a slow internet connection.
  • You can choose what time period to clear — last hour, last day, all time — so you don't have to delete everything at once.
  • After clearing cache, websites will load slightly slower the first time you visit them because your browser has to download fresh copies of images and files.

How to clear cache in Chrome, Firefox, Safari, and Edge

The steps are similar across all major browsers, though the exact menu names differ slightly. In all cases, you're looking for a "Clear browsing data" or "Clear history" option in the settings menu.

Chrome: Click the three vertical dots in the top right corner, select "Settings," then click "Privacy and security" in the left sidebar. Click "Clear browsing data." A window will pop up. Make sure "Cached images and files" is checked, choose your time range at the top (select "All time" to clear everything), then click "Clear data."

Firefox: Click the hamburger menu (three horizontal lines) in the top right, select "Settings," then click "Privacy & Security" on the left. Under "Cookies and Site Data," click "Clear Data." Check both "Cookies and Site Data" and "Cached Web Content," then click "Clear."

Safari: Click "Safari" in the menu bar at the very top of your screen, then select "Clear History." Choose how far back you want to clear (last hour, day, week, or all history) and click "Clear History." This clears both history and cache together.

Edge: Click the three dots in the top right, select "Settings," then click "Privacy, search, and services" on the left. Under "Clear browsing data," click "Choose what to clear." Check "Cached images and files," select your time range, and click "Clear now."

How to clear system cache on Windows

Windows stores temporary files in a folder called the Temp folder. You can delete these files directly, or use the built-in Disk Cleanup tool, which is safer because it won't let you accidentally delete something important.

Using Disk Cleanup (recommended): Press the Windows key and type "Disk Cleanup." Open the Disk Cleanup application. A window will ask you to select a drive — choose your main drive (usually C:). The tool will scan for temporary files. When it finishes, you'll see a list of file types you can delete. Check the boxes next to "Temporary files" and "Temporary Internet Files," then click "Delete Files." Windows will ask you to confirm; click "Delete."

Manually deleting the Temp folder: If Disk Cleanup doesn't work, you can delete temp files directly. Press Windows key + R, type %temp% and press Enter. This opens your Temp folder. Press Ctrl + A to select all files, then press Delete. Windows may tell you some files are in use and can't be deleted — that's normal. Click "Skip" for those files and delete the rest.

You can also clear the cache for Windows Update, which can grow quite large. Press Windows key + R, type cleanmgr and press Enter. This opens a different cleanup tool. Check "Windows Update Cleanup" and click "OK."

How to clear system cache on macOS

macOS stores cache files in hidden folders that aren't visible by default. The easiest approach is to use macOS's built-in storage management tools rather than hunting for hidden folders.

Using Storage Management: Click the Apple menu in the top left, select "System Settings" (or "System Preferences" on older Macs), then click "General." Click "Storage" on the left side. macOS will show you what's taking up space. Look for "Caches" or "Temporary files" — click on it and then click "Delete" or "Empty." You may need to enter your password.

Clearing application cache: Individual applications also store their own cache. Open Finder, click "Go" in the menu bar, then hold down the Option key. You'll see "Library" appear in the dropdown — click it. Navigate to Library > Caches. You'll see folders for different applications. You can delete cache folders for specific apps (like "Google Chrome" or "Firefox"), but don't delete anything you're unsure about. Drag the folder to the Trash, then empty the Trash.

What to expect after clearing cache

After you clear your cache, websites will load slightly slower the first time you visit them because your browser has to download fresh copies of images, stylesheets, and scripts. This slowdown is usually just a second or two. On your second visit to the same website, it will load at normal speed again because the cache has rebuilt.

You may also notice that you're logged out of some websites. This is because cache and cookies are different things — clearing cache doesn't always clear cookies, but some browsers do both at once. If you want to stay logged in, uncheck "Cookies" before you clear, and only clear "Cached images and files."

If you cleared cache because a website wasn't working, try visiting the site again. Many loading problems are fixed by clearing cache because the browser was stuck showing an old version of the page.

When clearing cache won't help

Clearing cache won't fix a slow internet connection. If your internet is slow, the problem is your connection speed, not your cache. Clearing cache also won't recover deleted files or improve your computer's overall performance if the cache wasn't very large to begin with.

If your computer is running slowly and you've cleared cache but nothing improved, the issue is likely something else — too many programs running at startup, a full hard drive, or malware. Cache is usually only a few gigabytes at most, so unless your drive is nearly full, cache size isn't the bottleneck.

Clearing cache also won't remove your browsing history or cookies unless you specifically select those options. If you want to delete your browsing history (the list of websites you've visited), that's a separate checkbox in the same "Clear browsing data" window.

Frequently Asked Questions

Will clearing cache delete my passwords?

No. Passwords are stored separately from cache. If you want to delete saved passwords, you have to uncheck "Passwords" in the clear browsing data window — it's not selected by default. Cache and cookies are different things; clearing one doesn't automatically clear the other.

How much disk space does cache usually take up?

Browser cache typically uses 100 MB to 2 GB depending on how long you've been using the browser and how many websites you visit. System cache can be larger, sometimes 5 to 10 GB. The exact amount varies by computer and usage. You can check how much space cache is using in your browser settings or in Storage Management on macOS or Disk Cleanup on Windows.

Should I clear cache before selling my computer?

Yes. Clearing browser cache removes temporary copies of websites you've visited, though it doesn't remove your browsing history. If you want to be thorough before selling, also clear cookies and browsing history, and consider doing a full factory reset of your operating system, which wipes everything and reinstalls Windows or macOS fresh.

Can I schedule cache to clear automatically?

Yes. In Chrome, Firefox, and Edge, you can set the browser to clear cache automatically when you close it. Open Settings, find the privacy section, and look for an option like "Clear cookies and cache when you close the browser" or "Delete browsing data on exit." Toggle it on. macOS doesn't have a built-in automatic cache clearing, but Windows Disk Cleanup can be scheduled to run weekly through Task Scheduler.

What's the difference between cache and cookies?

Cache stores images, scripts, and page layouts so websites load faster. Cookies store small pieces of information like login details and preferences. They're separate, and clearing one doesn't clear the other unless you select both options. You might want to clear cache but keep cookies so you stay logged into websites.