Showing questions tagged: Show all questions
  • Archived

Prevent Firefox from Clearing the Cache Automatically

Hi all, I'm a photographer and I've been using Firefox as my default/go-to browser for dealing with images-related things like uploading and downloading to server, access… (read more)

Hi all,

I'm a photographer and I've been using Firefox as my default/go-to browser for dealing with images-related things like uploading and downloading to server, accessing and opening photography-related sites and accounts such as Flickr Pro. I'd like to know if any of you can help me with my problem with cache.

So I've noticed that when using Firefox, oftentimes the cache is being cleared/purged automatically, for reasons I don't know yet. I'd like to know how I can keep the cache, or in other words, prevent Firefox from clearing the cache for any reason whatsoever. I really need the cache and I don't mind keeping a large or even massive cache. I'm browsing the same sites over and over again and I'd like to keep the cache instead of having to download it again everytime I browse the sites with Firefox.

The problem is I've tried things like disabling smart cache size and increasing my disk cache to 4 GB to no avail. Firefox always clears the cache automatically after certain period of time or under certain or specific condition(s). The thing is I don't know how to stop Firefox from tampering with my cache. None of my add-ons is actually tampering with the cache, nevermind clearing it.


Several settings that I've changed/modified manually:

・ browser.cache.auto_delete_cache_version: set to -1.

・ browser.cache.check_doc_frequency: set to 2.

・ browser.cache.disk.capacity: set to 4096000. I read somewhere that a Firefox users and a fellow photographer managed to increase the size to 16 GB with his Firefox 69 and is able to keep his cache until he clears it manually, but I failed to repro his steps since my Firefox always reverted back to 380 MB or something whenever I did that. He's probably using custom userChrome and/or userContent css.

All these settings are set to false: ・ browser.cache.disk.smart_size.enabled ・ browser.cache.disk.smart_size.first_run ・ browser.cache.disk.smart_size.use_old_max

・ browser.cache.memory.capacity: set to 2048000.

・ media.cache_size: sometimes I set this to 4096000 to see if it helps with anything, but most of the time it is set to its default value (unchanged).

・ browser.tabs.remote.warmup.enabled: set to false. I might accidentally added this to my 56.0.2 (and set it to false) since I don't remember tab warming being in pre-Quantum, but my 69.0.2 has this and I set it to false. There is also a thing with mouse cursor hovering over a tab making it reload the tab, but only after Firefox clear my cache.


If any of you curious about why I'm using 56.0.2, it's because I'm still using Multi Paste and Go add-on, which is a Godsend to me. It's really helpful with accessing or opening several links or images at once, oftentimes more than 30-40 images, and unfortunately the add-on is not made compatible with 69.0.2. I'm a very careful person when it comes to security and I never opened any sites with questionable or suspicious quality, just things related to work (photography) and bills (So-Net Nuro, Softbank, etc.) so please don't worry about my browsing habits or security risks. I also always disable Flash plugin.

At this point, I really have no idea how to prevent Firefox from clearing my cache. Sometimes Firefox clears my cache when I am still browsing, sometimes when I leave it idle. Sometimes I can reach over 1 GB of cache size before Firefox clears it, sometimes Firefox clears the cache when the size is still about 100-200 MB.

I always perform system maintenance manually (from updating OS to installing drivers, from setting up Adobe Photoshop and Lightroom to making backups) so I'd rather clearing my cache manually instead of letting Firefox do that for me.

Can any of you help me with my problem with cache?

I appreciate and thank for the help, advice, suggestion and assistance you could provide. I don't mind using custom userChrome or userContent as long as you don't mind guiding me with it (I never used it before).

I'm looking forward to get your help and feedback. Thank you very much.


Jun T.

p.s. while I can read English, I'm Japanese and I can't speak or write English fluently like a native speaker, so please forgive me if there's any typo or grammatical error in my explanation.

Asked by Jun 7 months ago

Last reply by Phil B. 6 months ago

  • Archived

Why does the cache value in memory not change?

I changed the value of browser.cache.memory.max_entry_size to 5000 and still created the value of browser.cache.memory.capacity with the same value. Then I restarted fire… (read more)

I changed the value of browser.cache.memory.max_entry_size to 5000 and still created the value of browser.cache.memory.capacity with the same value. Then I restarted firefox and saw that about: cache shows this: memory Number of entries: 0 Maximum storage size: 29696 KiB Storage in use: 0 KiB Storage disk location: none, only stored in memory List Cache Entries Why did the same 30 megabytes remain there?

Asked by NIGGA 1 year ago

Last reply by NIGGA 1 year ago

  • Archived

need script to reset the Firefox browser cache size to the desired value

I am looking for a script to execute the below tasks for more than 50+ servers for this i need a powershell or vbscript to reset the Firefox browser cache size to the d… (read more)

I am looking for a script to execute the below tasks for more than 50+ servers for this i need a powershell or vbscript

to reset the Firefox browser cache size to the desired value, which improves the browser performance. The optimal value is configured to 20 MB. This optimization does not clean the cookies and browsing history. Supported Firefox Version: 30

Asked by mail2vij 2 years ago

Last reply by mail2vij 2 years ago

  • Archived

How to find media extension videos in the cache

A lot of websites use media extensions to stream videos these days. However I can't find these files in the cache. How come when I completely downloaded a video so I can … (read more)

A lot of websites use media extensions to stream videos these days. However I can't find these files in the cache. How come when I completely downloaded a video so I can replay it without downloading (I can even turn off network) I can't get it out of Firefox? All the extensions seem to need some additional download or program too. How come if it's already downloaded? I'm on Fedora GNU+Linux. Thanks!

Asked by Unrealshade 2 years ago

Last reply by Unrealshade 2 years ago

  • Archived

When I ran a security scan using Windows Defender, it includes that some files in my Cache2 entries folder are suspicious. Could these be viruses or spyware?

When I ran a security scan using Windows Defender, it says that three files in my Cache2 entries folder are suspicious and should be sent to Microsoft for further analysi… (read more)

When I ran a security scan using Windows Defender, it says that three files in my Cache2 entries folder are suspicious and should be sent to Microsoft for further analysis. I am wondering if I should be concerned about this. Could these files be malware, spyware, or viruses? I will clear cache, but just want to make sure if the security of my system has been compromised. Thanks!

Asked by TienV 4 years ago

Last reply by James 4 years ago