How to Clear Cache & Cookies in Firefox
Clearing your cache and cookies in Firefox is one of the most effective first steps when a website isn't loading correctly, you're seeing outdated content, or you want to remove stored login data. But the process isn't one-size-fits-all — how you clear this data, and which data you choose to remove, depends on how you use Firefox and what problem you're trying to solve.
What Cache and Cookies Actually Are
Before diving into steps, it helps to understand what you're actually deleting.
Cache is a collection of temporary files — images, scripts, stylesheets — that Firefox saves locally so pages load faster on repeat visits. Instead of downloading the same logo every time you visit a site, Firefox pulls it from your local cache. This speeds things up but can occasionally cause issues if a cached file is outdated or corrupted.
Cookies are small text files that websites store in your browser to remember information about you. This includes your login status, site preferences, shopping cart contents, and tracking data used by advertisers. Cookies are what keep you logged into a site between sessions.
These two types of data serve different purposes, which is why Firefox lets you clear them separately or together.
How to Clear Cache and Cookies in Firefox 🖥️
The Standard Method (Desktop)
- Open Firefox and click the hamburger menu (the three horizontal lines) in the top-right corner.
- Select Settings.
- In the left sidebar, click Privacy & Security.
- Scroll down to the Cookies and Site Data section.
- Click Clear Data…
- You'll see two checkboxes:
- Cookies and Site Data — removes stored login sessions, preferences, and tracking cookies
- Cached Web Content — removes temporary files and images
- Check one or both boxes depending on what you want to clear.
- Click Clear.
This method gives you control over exactly what gets deleted.
Using the Clear History Dialog
Firefox also provides a more detailed clearing tool through the history menu:
- Press Ctrl + Shift + Delete (Windows/Linux) or Cmd + Shift + Delete (Mac).
- A dialog box opens with a Time Range dropdown at the top.
- Choose from: Last Hour, Last Two Hours, Last Four Hours, Today, or Everything.
- Check the specific data types you want to remove — including cache, cookies, browsing history, and more.
- Click Clear Now.
This method is useful when you only want to clear data from a specific time window rather than wiping everything at once.
Clearing Cache and Cookies on Firefox for Android
The mobile process is slightly different:
- Tap the three-dot menu in the top-right (or bottom-right, depending on your layout settings).
- Tap Settings.
- Scroll to Delete browsing data.
- Select Cached images and files and/or Cookies and site data.
- Tap Delete browsing data.
Firefox for iOS follows a similar path through Settings → Privacy → Data Management.
What Gets Affected When You Clear Each Type
| Data Type | What It Removes | Side Effects |
|---|---|---|
| Cache | Temporary files, images, scripts | Pages may load slightly slower on first visit after clearing |
| Cookies | Login sessions, preferences, tracking data | You'll be logged out of most websites |
| Both | All of the above | Fresh browser state for affected sites |
Clearing only the cache is generally the safer option if you just want to fix a page loading issue and don't want to lose your login sessions. Clearing cookies is more disruptive but more thorough — useful when you're troubleshooting persistent site behavior or want to remove tracking data.
How to Clear Data for a Single Site
Firefox lets you remove cache and cookies for one specific site without touching anything else:
- Go to Settings → Privacy & Security → Cookies and Site Data.
- Click Manage Data…
- Search for the site name in the search field.
- Select it and click Remove Selected.
This is particularly useful if one site is misbehaving but you don't want to log out of everything else.
Setting Firefox to Clear Data Automatically
If you'd rather not manage this manually, Firefox can clear cookies and cache automatically when it closes:
- Go to Settings → Privacy & Security.
- Under History, set Firefox to use custom settings for history.
- Check Clear history when Firefox closes.
- Click Settings… next to that option to choose which data types are cleared automatically.
This is a good setup for shared computers or anyone who prefers a clean slate each session. For users who rely on saved logins or persistent preferences, automatic clearing will require logging back in frequently — a trade-off worth considering.
Variables That Change the Right Approach for You 🔧
Several factors determine which clearing method makes the most sense:
- How frequently you clear data — Regular clearers may prefer automatic settings; occasional clearers may prefer manual control
- Whether you use saved passwords — Firefox's built-in password manager stores credentials separately from cookies, so clearing cookies won't delete saved passwords, but you will need to log back in
- Shared vs. personal device — On shared devices, clearing all cookies and cache regularly reduces privacy exposure
- The specific problem you're troubleshooting — A broken page layout often only requires a cache clear; persistent login loops or site errors may need cookies cleared too
- Sync settings — If you use Firefox Sync across devices, some data may repopulate after clearing, depending on what's synced
The right combination of what to clear, how often, and whether to automate it comes down to your own browsing habits, your privacy preferences, and how much friction you're willing to accept when it comes to logging back into sites. Each setup points toward a different answer.