> ## Content Index
> Fetch the complete content index at: https://itsfoss.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# Clearing Cache in Firefox
- URL: https://itsfoss.com/firefox-clear-cache/
- Published: 2023-08-29T07:26:00.000Z
- Updated: 2023-09-04T11:46:52.000Z
- Description: Learn to clear the Firefox cache with this simple screenshot guide. You'll also learn about dedicated extensions and automatic cache clear.
- Author: Sreenath
- Tags: Firefox, #hide

Browser cache is the temporary storage of files. These files can include various web page elements like images, scripts, stylesheets, and other resources that make up a webpage.

When you visit a website, Firefox may store a copy of these files in its cache to speed up future visits. This way, the browser can quickly retrieve these files from the cache instead of downloading them again from the internet.

An outdated cache on the local machine compared to that on the remote server can cause glitches (displaying an outdated version of a website). Hence, clearing the Firefox browser cache on the local system helps to clear this type of issue.

🚧

Clearing the Firefox cache may result in ****temporary** slow page loading as the browser needs to download various web page elements again since the cache is deleted. 

## Clear Cache Using Firefox settings

Click on the Hamburger menu and then click on Settings.

![Click on Settings in Firefox hamburger menu on the top right](https://itsfoss.com/content/images/2023/08/click-on-settings.png)

Click on Settings

Under **Privacy and Security**, go to **cookies and site data** section, select **Clear Data.**

![Click on CLear Data button on the "Cookies and Site Data" settings under the Privacy and Security Tab of Firefox settings](https://itsfoss.com/content/images/2023/08/cookies-and-site-data-section-clear-data.png)

Cookies and Site Data Settings

Now, check only the checkbox corresponding to the cache (**Cached Web Content**) and click **Clear** to clear only the cached content.

![Clear the vavhed web content by checking the Cache checkbox and clicking clear](https://itsfoss.com/content/images/2023/08/check-only-cache-and-clear.png)

Clear the Cached Web Content

This will delete the cached images and any other cached web content, for all the websites you had visited earlier.

💡

If you would rather not clear all the cache on your browser, and want to ignore cache for particular websites, press ****CTRL + F5** to refresh without cache. One of the available [Firefox keyboard shortcuts](https://itsfoss.com/firefox-keyboard-shortcuts/) to improve your web experience.

**Suggested Read 📖**

[15 Useful Firefox Keyboard Shortcuts \[With Cheatsheet\]Love Mozilla Firefox browser? Use it more efficiently by using these keyboard shortcuts.![](https://itsfoss.com/content/images/size/w256h256/2022/12/android-chrome-192x192.png)It's FOSSAnkush Das![](https://itsfoss.com/content/images/wordpress/2019/12/Firefox_Keyboard_Shortcuts.jpg)](https://itsfoss.com/firefox-keyboard-shortcuts/)

## Clear cache using history settings

Don't want to clear all the cached data, but for a particular time interval?

Another way to clear cached data according to time range is by using history management.

Click on the hamburger button and navigate to the **History** settings.

![Under the top-right hamburger menu, click on the History button](https://itsfoss.com/content/images/2023/08/click-on-history.png)

Click on History

From within that, select **Clear Recent History** (as shown in the image below).

![Inside the history option, select "Clear Recent History" section](https://itsfoss.com/content/images/2023/08/clear-recent-history.png)

Click on Recent History

Here, select the time range as **Last hour/Last two hours/Today or Everything**. Next, select only the cache option checkbox and click on the **Clear Now** button.

![After selecting the durations "Everything", select the cache check box and click on "clear now" button](https://itsfoss.com/content/images/2023/08/clear-cache-all-time.png)

Clear Cache of all time

This will delete the cached data for your chosen time range.

## Clear cache using extensions (in single click)

There is a Mozilla Recommended Extension called “**Clear Cache**”. 

Even though it not among the [best Firefox add-ons](https://itsfoss.com/best-firefox-add-ons/). You can choose to install it to quickly clear the cache.

[Get Clear Cache Extension](https://addons.mozilla.org/en-US/firefox/addon/clearcache/?ref=itsfoss.com)

![Click on the "Add to Firefox" button to add the Clear Cache extension to your Firefox browser](https://itsfoss.com/content/images/2023/08/clear-cache-extensions-page.png)

Clear Cache extension page

Once installed, you can clear the cache using the extension icon on the add-on area.

![Click on Clear Cache extension to Clear the browser cache immediately](https://itsfoss.com/content/images/2023/08/click-on-clear-cache-extension.png)

Click on Clear Cache extension

This way, you can instantly clear browsing data in a single mouse click.

💡

Pin the extension to the main toolbar to easily access it.

## Automatic clear Firefox cache on browser exit

To remove cache when Firefox exits, first open settings from the hamburger menu.

![Click on Firefox Settings menu inside the top-right hamburger menu](https://itsfoss.com/content/images/2023/08/click-on-settings-1.png)

Click on Settings

Now, in the **Privacy and Security** tab, go to the history section and select “**Use Custom Settings for History**” from the drop-down menu corresponding to “**Firefox Will**” section:

![Under history section in Privacy and Security, select custom settings for history drop down item](https://itsfoss.com/content/images/2023/08/1-firefox-clear-cache-step-01.png)

Select custom settings for history

Activate the checkbox “**Clear history when Firefox closes**” and click on the settings button.

![Select the "Clear History when Firefox Closes" checkbox and then click on the adjacent Settings button](https://itsfoss.com/content/images/2023/08/2-clear-history-when-firefox-closes-checkbox.png)

Clear History when Firefox Closes checkbox

On the settings, select the **Cache** checkbox and uncheck the not needed checkboxes and press OK.

![Check only the cache checkbox and press OK button to clear cache when firefox closes](https://itsfoss.com/content/images/2023/08/3-delete-only-cache-when-firefox-closes.png)

Delete only Cache

🚧

Firefox will remember this setting and automatically clear the cache from now on once Firefox is closed.

## Technical Bit: Where does Firefox store cache?

If you are curious, on Linux, usually, Mozilla Firefox stores the cached files in `~/.cache/mozilla/firefox/<profile folder>/cache2`.

![Firefox Cache location in Fedora displayed in Nautilus File Manager](https://itsfoss.com/content/images/2023/08/firefox-cache-in-fedora.png)

Firefox Cache location in Fedora

On Ubuntu, where Firefox is a snap app, the cache files are stored at `~/snap/firefox/common/.cache/mozilla/firefox/<profile folder>/cache2`

![Firefox Snap cache storage location in Ubuntu](https://itsfoss.com/content/images/2023/08/cache-location-in-ubuntu-firefox.png)

Ubuntu Firefox Cache Location

On Windows, you can find it in:

```
C:\Users\<username>\AppData\Roaming\Mozilla\Firefox\Profiles\<profile folder>
C:\Users\<username>\AppData\Local\Mozilla\Firefox\Profiles\<profile folder>\cache2
```

You can choose to delete the files manually inside the cache folder, it is just an option. 

## Did you clear the Firefox cache?

Clearing the browser cache in Firefox helps me see the changes made to any website. Otherwise, the web pages don't show CSS changes as they are cached, and I end up looking at the older version of a web page.

At times, private browsing is an even better option if you don't want the browser to record a specific website visit in your history and store any cache.

I hope you find this quick little tip helpful in clearing the Firefox cache. Let me know if you have any questions or suggestions.