If your browser is loading pages slowly, websites look broken, or your device is running low on storage, stale cache could be the culprit. Clearing it forces your system to fetch fresh files instead of relying on outdated copies saved during earlier visits.
In this guide, I cover every major browser — Chrome, Safari, Edge, Firefox, Opera — and all common operating systems including Windows, macOS, Linux, ChromeOS, Android, and iOS. I also provide specific steps for both desktop and mobile devices.
What is cache and why should you clear it?
Cache is temporary data your browser and operating system store to speed up repeat actions. When you visit websites or use apps, these files accumulate over time and can cause slow loading, broken layouts, or wasted storage space.
Cache works well until it stops being helpful. Over time, three issues can build up:
- Websites update their pages, but your browser keeps serving the old stored versions — so layouts break, images don’t load, or buttons stop working.
- Temporary files pile up and quietly eat into your storage.
- Old cached data can clash with newer versions of a site, causing pages to glitch even when nothing’s wrong on the website’s end.
Clearing the cache hands your browser a clean slate, forcing it to fetch fresh files and freeing up storage in the process.
How to clear cache on web browsers
Most desktop browsers share the same keyboard shortcut. Safari is the exception. Here’s the quick reference:
| Browser | Desktop Shortcut | Menu Path | Cache Checkbox Label |
|---|---|---|---|
| Chrome | Ctrl+Shift+Delete (Win/Linux) · Cmd+Shift+Delete (Mac) | ⋮ menu → Delete browsing data | Cached images and files |
| Safari | No shortcut | Safari → Settings → Advanced → enable Develop menu → Develop → Empty Caches | Automatic |
| Edge | Same | ⋯ menu → Settings → Privacy, search, and services → Choose what to clear | Cached images and files |
| Firefox | Same | ≡ menu → Settings → Privacy & Security → Clear Data | Cached Web Content |
| Opera | Same | Settings → Privacy & security → Clear browsing data | Cached images and files |
Google Chrome (Windows, Linux, and macOS)
- Press Ctrl + Shift + Delete (Windows/Linux) or Cmd + Shift + Delete (Mac). Alternatively, click the three-dot menu > Delete Browsing Data.
- Choose a time range (for example “All time” for a full clear.
- Check Cached images and files. Uncheck anything you want to keep, such as cookies or passwords.
- Click Delete from this device.
Google Chrome (Android)
- Open Google Chrome and tap the three-dot menu (top-right).
- Tap Settings > Privacy and security > Clear browsing data.
- Select Cached images and files, choose a time range, then tap Clear data.
Google Chrome (iOS)
- Open Chrome and tap the three-dot menu.
- Select Settings.
- Go to Privacy and security.
- Select Delete browsing data.
- Pick a time range, select Cached images and files > Delete Data to confirm.
Safari (macOS)
- Open Safari, click Safari > Settings.
- Go to Privacy and select Manage Website Data.
- Select Remove All.

- Click Remove Now to confirm.

Safari (iOS)
- Open the iOS Settings app (not Safari itself).
- Scroll down to Apps.
- Scroll down and tap Safari.
- Tap Clear History & Website Data.
- Select a timeframe and confirm by tapping Clear History.
Note: On iOS this clears cache, cookies, and browsing history together. There’s no way to clear cache alone.
Microsoft Edge (Windows and macOS)
- Press Ctrl + Shift + Delete (Windows) or Cmd + Shift + Delete (Mac), or click the three-dot menu and select Settings.
- Go to Privacy, search, and services.
- Select Clear browsing data > Choose what to clear.
- Check Cached images and files, select a time range, then click Clear now.
Microsoft Edge (Android and iOS)
- Open Edge, tap the menu (three lines, bottom-right).
- Select Settings.
- Tap Privacy and Security.
- Select Delete Browsing Data.
- Select a time range, check Cached files, and select Delete data.
Mozilla Firefox (Windows, Linux, and macOS)
- Press Ctrl + Shift + Delete (Windows/Linux) or Cmd + Shift + Delete (Mac) or tap the menu (three lines) and select Settings.
- If navigating via Settings, select Privacy & Security > Clear Data (under Cookies and Site Data).
- Select your preferred time range and check Temporary cached files and pages.
- Click Clear to confirm.
Mozilla Firefox (Android and iOS)
- In Firefox, tap the menu (three lines or dots).
- select Settings.
- Tap Delete browsing data (Android) or Data Management (iOS).
- Select Cache (and deselect anything you want to keep).
- Tap Clear Private Data > OK to confirm.
Opera (Windows, Linux, and macOS)
- In Opera, press Ctrl + Shift + Delete (Windows/Linux) or Cmd + Shift + Delete (Mac), or open the Easy setup menu and select Go to full browser settings.
- If navigating via settings, click Privacy & security > Delete browsing data.
- Check Cached images and files, set the time range, and click Delete data.
Opera (Android and iOS)
- Tap the three dots menu.
- Click Settings.
- Click Clear Browser Data.
- Select Cached Images and Files, choose a time range, then tap Clear to confirm.
How to clear cache on operating systems
Windows 10 and 11
Method 1 — Storage Sense:
- Open Settings > System > Storage.
- Click Temporary files (or let Storage Sense run automatically — toggle it on under Storage Sense if you want it handled for you).
- Check the categories you want to clear (Temporary files, Thumbnails, Delivery Optimization files are all safe to remove).
- Click Remove files.
Method 2 — Disk Cleanup:
- Type Disk Cleanup in the Start menu and launch it.
- Select your system drive (usually C:).
- Check the file types you want to remove — Temporary files, Thumbnails, and Windows Update Cleanup are safe selections.
- Click OK > Delete Files.
Flush DNS cache (optional): Open Command Prompt as administrator and run ipconfig /flushdns. This resolves network-related caching issues.
macOS
macOS doesn’t have a single “clear cache” button, but you can target user-level caches safely:
- Open Finder, press Cmd + Shift + G, and paste ~/Library/Caches.
- Select the contents of this folder and move them to Trash (don’t delete the folder itself).
- Empty the Trash and restart your Mac.
For system-level caches, the path is /Library/Caches, but modifying it requires administrator privileges and carries more risk. For most users, clearing the user-level cache and restarting is enough.
Linux
On most distributions (Debian/Ubuntu-based):
- Clear the package manager cache:
sudo apt-get clean
sudo apt-get autoclean - Clear user cache:
rm -rf ~/.cache/* - Optionally reduce systemd journal logs:
sudo journalctl –vacuum-time=2d
For Fedora/RHEL-based systems, replace apt-get clean with sudo dnf clean all.
Warning: Be careful with rm -rf. Always double-check the path before executing. Deleting the wrong directory can cause application errors.
ChromeOS
ChromeOS handles most system caching through the browser itself, so clearing Chrome’s cache (as in the Chrome section further above) covers most of what you need.
However, for a deeper reset:
- Go to Settings > Advanced > Reset settings.
- Choose Powerwash to factory-reset the device.
Note: Powerwash wipes all local data, including downloads and accounts. Use it only if you’re experiencing persistent issues and have backed up your files.
Android
Clearing cache on Android is done per app. There’s no global cache-clearing option on modern versions (Android 12+):
- Go to Settings > Apps.
- Select the app and go to Storage > Clear cache.
For browser cache specifically, use the in-app steps I outlined earlier.
iOS
iOS doesn’t have a global cache-clear option. Instead, it manages it by app:
- Open Settings > General.
- Select iPhone Storage.
- Tap an app to see its storage usage. Some apps offer a Clear cache or Offload App option here.
Offloading removes the app binary but keeps your documents and data. When you reinstall the app, everything is restored. This is a safe way to reclaim space without losing anything.
For a broader refresh, simply restarting your iPhone clears many temporary caches held in memory.
Wrapping up
Clearing cache is one of those small maintenance tasks that solves a surprising range of problems including broken websites, wasted storage, and sluggish performance.
If you’ve followed the relevant section above, your cache should be cleared and your issue resolved. There’s no ongoing setup required — just come back to this guide the next time you need it.
Clear cache: FAQs
Will clearing cache delete my passwords or saved data?
No, as long as you only check “Cached images and files”. Cache is just temporary site files. The same menu often includes checkboxes for cookies, browsing history, and passwords. Leave those unchecked if you want to keep them.
How often should I clear my cache?
There’s no fixed schedule. Clear your cache when you notice problems such as a site looking broken, pages loading slowly, or your device running low on storage. For most people that might only be every few weeks or months. Clearing it unnecessarily just means pages take slightly longer to load the first time you revisit them.
Is clearing cache the same as clearing browsing history?
No. Cache stores temporary files (images, scripts, stylesheets) that help load pages faster. Browsing history is simply a record of the web pages you’ve visited. Although they’re often grouped together in the same settings page, they serve very different purposes.