Restrict cache folder size in roaming part of the user profile

15 views
Skip to first unread message

Osdoba, Sascha

unread,
Apr 21, 2023, 10:32:02 AM4/21/23
to enter...@mozilla.org
Hi,

from time to time we see users with big data size in "%appdata%\Mozilla\Firefox\Profiles\userprofilename\storage" folder.
This is the part of the profile which is roaming (server synced user profile) and this is occurring long log on and log off time.

Is there any way to avoid that? Can I set an max size, if yes, how?

Wouldn't it be better to save every cache data in "%localappdata%"?

Regards,

Sascha

Fjoerfoks

unread,
Apr 24, 2023, 6:52:43 AM4/24/23
to Osdoba, Sascha, Mozilla Enterprise Working Group
If possible, you can choose to exclude that folder from roaming, but that depends on the system management your company uses.

Wim

Op vr 21 apr. 2023 16:31 schreef Osdoba, Sascha <S.Os...@gsi.de>:
--
You received this message because you are subscribed to the Google Groups "enter...@mozilla.org" group.
To unsubscribe from this group and stop receiving emails from it, send an email to enterprise+...@mozilla.org.
To view this discussion on the web visit https://groups.google.com/a/mozilla.org/d/msgid/enterprise/0d8b984b5e9d427c959d8785e6cd32a2%40gsi.de.

Osdoba, Sascha

unread,
Apr 24, 2023, 8:54:52 AM4/24/23
to Fjoerfoks, Mozilla Enterprise Working Group

Hi Wim,

 

but this is complex because “userprofilname” in "%appdata%\Mozilla\Firefox\Profiles\userprofilename\storage" is never the same

on different accounts. I need something manageable in Firefox.

 

 

Sascha

Fjoerfoks

unread,
Apr 24, 2023, 9:08:25 AM4/24/23
to Osdoba, Sascha, Mozilla Enterprise Working Group
Hi Sascha,

Again that really depends on the system/desktop management you're using.
For Firefox we've predefined the location of the profile, by controlling the shortcut.
We added the parameter -profile %APPDATA%\Mozilla\Firefox\Profiles\<your choice of folder>.

Wim


Op ma 24 apr. 2023 14:54 schreef Osdoba, Sascha <S.Os...@gsi.de>:

Osdoba, Sascha

unread,
Apr 24, 2023, 9:21:31 AM4/24/23
to Fjoerfoks, Mozilla Enterprise Working Group

Hi Wim,

 

i understand it and I see the value and advantage of your default settings. But its too late for us to do it that way

Mike Kaply

unread,
Apr 24, 2023, 9:35:46 AM4/24/23
to Osdoba, Sascha, Fjoerfoks, Mozilla Enterprise Working Group
storage is not technically cache, it's web storage;

We have a bug opened for this, but unfortunately it hasn't gotten any traction


Mike

Mike Kaply

unread,
Apr 24, 2023, 9:36:26 AM4/24/23
to Osdoba, Sascha, Fjoerfoks, Mozilla Enterprise Working Group
Also FYI, there's a script in there that folks are using to solve some of this.

Mike

Philipp Madersbacher

unread,
Apr 24, 2023, 9:54:30 AM4/24/23
to enter...@mozilla.org
(oops, forgot to send the reply to the whole list)

Hi, you can use the "dom.quotaManager.temporaryStorage.fixedLimit" pref in about:config (value is for Bytes) which will have an impact on the max size of the %appdata%\Mozilla\Firefox\Profiles\userprofilename\storage\default folder (which websites can make use of via IndexedDB and cache API). Any origin can use only 20% of the global limit, so e.g. if you set dom.quotaManager.temporaryStorage.fixedLimit to 1GB, a particular domain like google.com can use 200MB max - I think some sites like WhatsApp Web will show some breakage, if the limit is set too low...

Best regards
Philipp

Osdoba, Sascha

unread,
Apr 24, 2023, 9:58:18 AM4/24/23
to Mike Kaply, Fjoerfoks, Mozilla Enterprise Working Group

Hi Mike,

 

this is exact the problem we have. I added some comment there. I hope it will be fixed/changed soon because its really annoying.

I will check the script and do a testing implementation. Thanks.

 

Sascha

Andrew C Aitchison

unread,
Apr 24, 2023, 10:38:38 AM4/24/23
to Mozilla Enterprise Working Group
On Mon, 24 Apr 2023, Mike Kaply wrote:

> storage is not technically cache, it's web storage;
>
> We have a bug opened for this, but unfortunately it hasn't gotten any
> traction
>
> https://bugzilla.mozilla.org/show_bug.cgi?id=1395705

When I was a running a Windows desktop network in a university
I would have been prepared to throw money at this
even though universities don't have money for software,
and my user base was 10:1 Linux:Windows.

Figure out all the other parts later if you want,
but at least get an option to take the web storage
out of the roaming profile and onto local storage;
it is difficult to see why it should ever have been in there
and it is sufficient reason for sites to default to another browser.

If you need to send a hat around do so, but this should
be the top priority for enterprise firefox IMHO.

--
Andrew C. Aitchison Kendal, UK
and...@aitchison.me.uk

Paul Kosinski

unread,
Apr 24, 2023, 12:37:42 PM4/24/23
to enter...@mozilla.org
Has Mozilla put significant resources into "Enterprise Firefox" (ESR), or is Mike the only one really working on it?

Marco Gaiarin

unread,
Apr 26, 2023, 3:50:09 AM4/26/23
to enter...@mozilla.org
Mandi! Mike Kaply
In chel di` si favelave...

> We have a bug opened for this, but unfortunately it hasn't gotten any traction
> https://bugzilla.mozilla.org/show_bug.cgi?id=1395705

Consider there's a similar bug open for Thunderbird here:

https://bugzilla.mozilla.org/show_bug.cgi?id=517425

And a different 'script' approach (with junction).

--
dott. Marco Gaiarin GNUPG Key ID: 240A3D66
Associazione ``La Nostra Famiglia'' http://www.lanostrafamiglia.it/
Polo FVG - Via della Bontà, 7 - 33078 - San Vito al Tagliamento (PN)
marco.gaiarin(at)lanostrafamiglia.it t +39-0434-842711 f +39-0434-842797

Dona il 5 PER MILLE a LA NOSTRA FAMIGLIA!
http://www.lanostrafamiglia.it/index.php/it/sostienici/5x1000
(cf 00307430132, categoria ONLUS oppure RICERCA SANITARIA)

Osdoba, Sascha

unread,
Apr 26, 2023, 3:56:24 AM4/26/23
to Mike Kaply, Mozilla Enterprise Working Group

Hi Mike,

 

it looks like also other users have the need to get this solved. May you can put that topic in the right direction?

 

Script is fine and working (but check it before apply it, also the last comment from MM) but this should be fixed

somehow in Firefox with no workaround script needed.

 

 

 

Sascha

Reply all
Reply to author
Forward
0 new messages