----- Original Message ----- > 1/ What is the default setting in Firefox for the Cache? Is it RAM > then Disk. Is this flow described anywhere? > > > One of our cache experts, Nick, has told me that the resources are > cached in both RAM and disk by default.
To clarify, both RAM and disk caches are *enabled* by default. As things stand right now, most resources will be cached in the disk cache, and not in RAM (IIRC, RAM is reserved for TLS resources served with cache-control no-store). > Nick, Michal, is there a flow described somewhere for the cache that > Alan could look at? Do you know how plugins like Flash use the > cache? Is there a difference? I don't believe there is any documentation of the flow for the entire cache, no. I am also not aware of how Flash and other plugins make use of the cache. > 2/ How is garbage collection instigated - the latest Firefox has an > option suggesting that, by default, there is an automatic garbage > collection which must use some rules... perhaps about disk space? For > example: in Google Chrome, the default cache can take up huge amounts > of disk space growing without some sort of size limit it seems, plus > you can only change the cache settings on the CLI of Chrome (no > 'consumer' level configuration in the 'preferences' dialogs). > > > I'll let Nick and Michal comment on garbage collection for regular > cache objects. We also have a media cache, which the guys on > dev-media have a better understanding since they wrote it, but I > don't think it's used for Flash, only for built-in decoders. The regular cache is limited to 1GB (or less, depending on free disk space). Once that limit is reached, space is freed up as needed to store new entries in an LRU fashion. Memory cache is limited to 32MB, I think? It uses a size-aware LRU eviction algorithm. There is some configuration for disk cache size in the regular preferences pane in Firefox. _______________________________________________ dev-media mailing list [email protected] https://lists.mozilla.org/listinfo/dev-media

