Where is the Mozilla Firefox cache located?

87

Solution 1

.mozilla/firefox directory contains the settings and extensions. Here's output of mine:

$ ls .mozilla/firefox/b1ygiwi1.default/ | head      
addons.json
addons.sqlite*
blocklist.xml
bookmarkbackups/
cert8.db*
cert_override.txt*
compatibility.ini*
content-prefs.sqlite*
cookies.sqlite*
cookies.sqlite-shm*

The other directory actually contains different types of cache, as wie5Ooma already mentioned.

So if something would be going wrong, you'd might want to try altering or deleting completely whatever is in ~/.mozilla/firefox/ to restore settings to default.

There is also cache in .macromedia/Flash_Player\#SharedObjects/ which belongs to flash player if you use that, like s.ytimg.com from youtube.

Solution 2

Cache is the regular cache backend.
Cache2 is a new cache backend since Firefox 27 and onwards.
OfflineCache is the offline cache from which a resource is essentially loaded first and then it is checked if it is still fresh.
startupCache is a sort of fastload feature.

All of these are capable of holding pieces of website data.

Solution 3

This is my location for all stuff, including songs from sites .cache/mozilla/firefox/[random characters].default/cache2/entries

Share:
87

Related videos on Youtube

Admin
Author by

Admin

Updated on September 18, 2022

Comments

  • Admin
    Admin over 1 year

    I have just started creating this program and I am trying to make a method outside of the main class. I researched the error and it says there are too many curly brackets outside the main function.

    I was just wondering if it was actually possible to have a public static function outside of a main class?

    class NewMain {
    
        public static void main(String[] args) {
    
        }
    
    
    }
    
    
    public static void plusOne(){
    
    }
    
    • Panther
      Panther almost 9 years
    • Admin
      Admin almost 9 years
      @bodhi.zazen: I have noted those two possible duplicates, and have expanded my question slightly now that I have the new information.
    • Panther
      Panther almost 9 years
      Now you are expanding your question ;)
    • khelwood
      khelwood almost 4 years
      Every method must be in a class (or interface). It doesn't have to be in your main class, but it has to be in something.
  • akuzminykh
    akuzminykh almost 4 years
    Or note that Java is an object-oriented language. Everything is an object and objects are just instances of a class. Methods are applied on objects. Functions belong to concepts that are represented by classes. It makes no sense to have methods/functions outside of classes in Java.
  • Michael
    Michael almost 4 years
    "there is no reason you should want to." This is not true. Kotlin allows this, and I consider that to be a well-designed language.
  • khelwood
    khelwood almost 4 years
    @akuzminykh Being an object-oriented language doesn't preclude having standalone functions. It's a language design choice.
  • Michael
    Michael almost 4 years
    @akuzminykh "Methods are applied on objects". how about static methods?
  • akuzminykh
    akuzminykh almost 4 years
    @khelwood Ok. Rather give the OP the answer "Every method must be in a class" because that's why. Or "Think of a class as a collection of code".
  • akuzminykh
    akuzminykh almost 4 years
    @Michael What do you think is the difference between a function and a method?
  • codebod
    codebod almost 4 years
    @Michael. To clarify my point: stackoverflow.com/a/49015268/13373270. Having a method outside a class does not gain you any additional functionality, it just makes for arguably cleaner code, more honest to an OOP approach.