User Agents

Mozilla Browser Cache: What It Is and How to Clear It

Mozilla browser cache is a local storage area where Firefox keeps copies of web page resources—images, scripts, stylesheets, and other files—so pages load faster on repeat visits. Clearing it is done from Firefox's Settings under Privacy & Security, or with the keyboard shortcut Ctrl+Shift+Delete (Cmd+Shift+Delete on Mac).

What the Cache Actually Stores

When you visit a website, Firefox downloads the page's HTML, CSS, JavaScript, images, fonts, and sometimes media files. Instead of re-downloading everything each time, it saves many of these items in the cache on your disk (or in memory for the current session). On subsequent visits, Firefox checks whether the cached copy is still valid—using headers like Cache-Control and ETag sent by the server—and if so, loads from disk instead of the network. This reduces bandwidth and makes pages appear faster, especially on slower connections or for sites with large, unchanging assets like logos and icons.

The cache is distinct from cookies and site data. Cookies store small pieces of information like login sessions and preferences, while the cache stores resource files. Clearing one does not automatically clear the other, though Firefox's clear-data dialog lets you select both.

How Firefox Manages Cache Storage

Firefox uses two main caches: the memory cache (RAM) for the current session and the disk cache for persistence across restarts. The disk cache has a size limit that Firefox manages automatically, evicting older entries as new ones are added. You can view and change this limit via about:config by searching for browser.cache.disk.capacity, but for most users the default is fine.

Firefox also respects HTTP caching headers. If a server sends Cache-Control: no-store, Firefox will not cache the response. If it sends max-age, Firefox may serve the cached copy without contacting the server until that age expires. This is why some sites update instantly after a change while others seem to show stale content until you force a reload.

How to Clear the Cache in Firefox

There are several ways to clear the cache, depending on what you need:

  1. Using the keyboard shortcut: Press Ctrl+Shift+Delete (Windows/Linux) or Cmd+Shift+Delete (Mac) to open the Clear Recent History dialog. Set the time range to "Everything" (or a shorter period), check "Cache" (and optionally "Cookies" and "Site Data" if you want a full reset), then click "Clear Now."
  2. Using the Settings menu: Open the menu (three horizontal lines), choose Settings, then Privacy & Security. Scroll to "Cookies and Site Data" and click "Clear Data." Check "Cached Web Content" and click "Clear."
  3. Using the Library window: Press Ctrl+Shift+O (Cmd+Shift+O on Mac) to open the Library, right-click the cache entry (if shown), and choose "Clear." This method is less common in recent versions.
  4. For a single site: Firefox does not offer a per-site cache clear through the standard interface. You can use the Developer Tools (F12) → Network tab → right-click and choose "Clear Browser Cache," but this clears the entire cache, not just one site. Alternatively, a hard reload (Ctrl+F5 or Cmd+Shift+R) bypasses the cache for that page load without deleting stored files.

Note that menu labels and exact wording can differ slightly between Firefox versions and operating systems. If you cannot find an option, check the Mozilla Support site for your version.

Common Problems and Fixes

A stale or corrupted cache can cause several issues:

  • Outdated content: A site shows an old version of a page. A hard reload or clearing the cache usually fixes it.
  • Broken layout or missing images: Corrupted cached files can make a page render incorrectly. Clearing the cache forces fresh downloads.
  • Login loops or errors: Sometimes cached redirects or scripts interfere with authentication. Clearing cache and cookies for the site resolves it, though you will be logged out.
  • Slow performance: An overly large or fragmented cache can slow Firefox down. Clearing it occasionally can help, but Firefox manages size automatically, so this is rarely needed.

If clearing the cache does not solve the problem, try disabling extensions, checking for Firefox updates, or creating a new profile to isolate the issue.

Cache vs. Cookies vs. History: What Gets Deleted

Understanding the difference helps you choose what to clear:

  • Cache: Temporary copies of web resources. Clearing it frees disk space and forces fresh downloads but does not log you out of sites.
  • Cookies and site data: Small files that store sessions, preferences, and tracking identifiers. Clearing them logs you out of most sites and resets preferences.
  • History: A record of visited pages, downloads, and form entries. Clearing it removes autocomplete suggestions and visited-link styling.

Firefox's Clear Recent History dialog lets you select any combination of these. For a privacy-focused reset, clearing all three is common; for a quick fix of a loading issue, clearing only the cache is usually enough.

Does Clearing the Cache Affect Performance or Privacy?

Clearing the cache temporarily slows browsing because Firefox must re-download resources, but the effect is short-lived. It does not affect your privacy directly—cached files are not used to track you across sites in the way cookies are—but clearing it removes local copies of sites you visited, which can be useful if you share a computer. Note that clearing the cache does not remove cookies or history unless you select those options too.

For privacy, Firefox also offers a "Clear history when Firefox closes" option in Settings → Privacy & Security, which can be configured to clear the cache automatically on exit.

Frequently Asked Questions

Where is the Firefox cache stored on my computer?

The disk cache is stored in your Firefox profile folder. On Windows, it is typically under %APPDATA%\Mozilla\Firefox\Profiles\; on macOS, under ~/Library/Caches/Firefox/Profiles/; and on Linux, under ~/.cache/mozilla/firefox/. The exact path includes a random profile folder name. You can find it by typing about:support in the address bar and looking for "Profile Folder."

Does clearing the cache delete my bookmarks or passwords?

No. Bookmarks, passwords, and browsing history are stored separately. Clearing the cache only removes temporary web resources. However, if you also check "Cookies and Site Data" or "Browsing & Download History" in the clear dialog, those will be removed.

How often should I clear the Firefox cache?

There is no set schedule. Most users never need to clear it manually because Firefox manages cache size automatically. Clear it when you experience loading problems, see outdated content, or want to free up disk space. Frequent clearing is unnecessary and may slow browsing slightly.

Why does Firefox keep caching even after I clear it?

Firefox caches resources as you browse; clearing removes existing entries, but new ones are created immediately as you continue using the browser. This is normal. If you need to prevent caching for development or testing, use Private Browsing mode or disable the cache in Developer Tools (F12 → Network tab → check "Disable Cache").

Can I clear the cache for just one website in Firefox?

Firefox does not provide a built-in per-site cache clear. You can use a hard reload (Ctrl+F5) to bypass the cache for a single page load, or clear the entire cache. For persistent per-site issues, clearing cookies and site data for that site (via the padlock icon in the address bar) may help, but it will not clear cached files specifically.