This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

تلاش سپورٹ

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

مزید سیکھیں

How to locate and change Firefox Cache storage location

more options

1) Because the built in options are ambiguous I want to flush the temporary Cache storage directory myself, but I can't find it. Where is it? 2) Then I want to relocate it, but here are Mozilla's instructions for how to reset it:

==

To set Firefox's cache folder, first type “about:config” (omit quotes throughout) into the program's address bar and then hit “Enter.” Right-click on any of the displayed properties, select “New” and then select “String” to display the New String dialog box. Enter “browser.cache.disk.parent_directory” into the box and then click “OK” to display the New Value dialog box. Enter the full filepath to the folder you wish to use as the cache folder, and then click “OK.”

==

Doesn't work.

So, after finding the current location and flushing it how do I change it?

1) Because the built in options are ambiguous I want to flush the temporary Cache storage directory myself, but I can't find it. Where is it? 2) Then I want to relocate it, but here are Mozilla's instructions for how to reset it: ============== To set Firefox's cache folder, first type “about:config” (omit quotes throughout) into the program's address bar and then hit “Enter.” Right-click on any of the displayed properties, select “New” and then select “String” to display the New String dialog box. Enter “browser.cache.disk.parent_directory” into the box and then click “OK” to display the New Value dialog box. Enter the full filepath to the folder you wish to use as the cache folder, and then click “OK.” ============== Doesn't work. So, after finding the current location and flushing it how do I change it?

منتخب شدہ حل

Jim, on the first issue, you paused at Step 3 in the article: click the Clear Data button to call up the dialog with two choices.

On the second issue, you are creating a preference from scratch that does not otherwise exist. Firefox has no default value to show you for that preference.

If you typo the preference name to something Firefox doesn't recognize -- seems unlikely, since you already knew what it was before posting -- your new preference will be ignored and nothing will change. In that case, try again.

اس جواب کو سیاق و سباق میں پڑھیں 👍 0

تمام جوابات (10)

more options

For #1, do you want to physically remove the folder or just clear the cache? To clear the cache: How to clear the Firefox cache (no need to clear cookies and site data when clearing the web cache).

For #2, the about:config screen changed some time ago; there's no more right-click context menu. Was that an old forum thread or a current article? Anyway, try it this way:

(1) In a new tab, type or paste about:config in the address bar and press Enter/Return. Click the button accepting the risk.

(2) In the search box in the page, type or paste the new preference name

browser.cache.disk.parent_directory

If this preference was already created and has some value assigned to it, click the garbage can at the right end of the row to create it again.

(3) On the bar with the preference name, click the radio button next to String and click the + button to add the preference. Then Firefox should display the new value.

(4) Type or paste the new parent folder (Firefox will create its cache2 folder inside this folder) and click the blue checkmark button or press Enter to save the change.

Screenshot sequence attached for reference.

When I tested, I exited Firefox and started it up again at this point.

You can open the about:cache page to check that the change is working. See second screenshot for reference (this was after a few page loads).

more options

Thanks for your reply, but . . .

Answer for #1 Though that method makes it clear I do not get the screen shown in that method. The screen(s) I get are ambiguous as to whether it will delete cookies, which I don't want to do.

Answer for #2 Before posting, I had found that instruction and tried it but I get a blank when I do that. It does not show the current directory, leaving me with no confidence I'm doing the right thing.

more options

Note that there is a Preferences policy available to set the location of the disk cache.

Search for "browser.cache.disk.parent_directory"

more options

You can find a button on the about:profiles page to go to the secondary profile location in "AppData\Local" used for the disk cache.

cor-el کی جانب سے میں ترمیمکی گئ

more options

i_am_jim1 said

jscher2000 said

For #1, do you want to physically remove the folder or just clear the cache? To clear the cache: How to clear the Firefox cache (no need to clear cookies and site data when clearing the web cache).
Though that method makes it clear I do not get the screen shown in that method. The screen(s) I get are ambiguous as to whether it will delete cookies, which I don't want to do.

Where does your Firefox not match the article? There are selectors on the right side to specify Firefox 83 on Windows 10 if the article is showing information for a different version or OS. Note that version tailoring is done with JavaScript so if you disable scripts on this site, articles may be scrambled.

As shown in the article, the "Clear Data" dialog has two check boxes for the different categories of data and you only want to clear web cache:


i_am_jim1 said

Answer for #2 Before posting, I had found that instruction and tried it but I get a blank when I do that. It does not show the current directory, leaving me with no confidence I'm doing the right thing.

I assume you already created the new folder you want to use. Open that new location in Windows File Explorer. Copy the full path from the address bar and paste it into the field. They need to match. If you are not comfortable working with folder paths, why do you want to change the default path?

more options

Where does your Firefox not match the article? There are selectors on the right side to specify Firefox 83 on Windows 10 if the article is showing information for a different version or OS. Note that version tailoring is done with JavaScript so if you disable scripts on this site, articles may be scrambled.

As shown in the article, the "Clear Data" dialog has two check boxes for the different categories of data and you only want to clear web cache:


Here's what I get: [see capture at bottom of this reply]


i_am_jim1 said

   Answer for #2
   Before posting, I had found that instruction and tried it but I get a blank when I do that.  It does not show the current directory, leaving me with no confidence I'm doing the right thing.

I assume you already created the new folder you want to use. Open that new location in Windows File Explorer. Copy the full path from the address bar and paste it into the field. They need to match. If you are not comfortable working with folder paths, why do you want to change the default path?


I know how to do it and have the folder in the Clipboard buffer. The problem is when I execute the instructions all Firefox shows me is an empty box/blank. Without it showing the existing path how am I to know I have correct blank box?

I want to change the location to a secondary drive because my Windows drive is a SSD and running low on space.

i_am_jim1 کی جانب سے میں ترمیمکی گئ

more options

Bad forum system. Why does each outfit feel like it has to reinvent the wheel? When there's an existing widely used system, why force people to learn a new one which rarely works as well as something tried and true???????

more options

منتخب شدہ حل

Jim, on the first issue, you paused at Step 3 in the article: click the Clear Data button to call up the dialog with two choices.

On the second issue, you are creating a preference from scratch that does not otherwise exist. Firefox has no default value to show you for that preference.

If you typo the preference name to something Firefox doesn't recognize -- seems unlikely, since you already knew what it was before posting -- your new preference will be ignored and nothing will change. In that case, try again.

more options

Jim, on the first issue, you paused at Step 3 in the article: click the Clear Data button to call up the dialog with two choices.


When a button says Clear Data I'm not likely to click it without a qualifier. Click Data choose what data to delete, OK Clear Data is to all inclusive.

With your explanation I have done it now. And, I've changed the cache storage location. Thanks for staying with me.

more options

It's understandable to be nervous. Generally speaking, Firefox follows the Windows convention of using ... to indicate a dialog box, so because it's "Clear Data..." you can be reasonably assured that it doesn't take action immediately.