this post was submitted on 27 Jun 2024
12 points (92.9% liked)

Firefox

16764 readers
32 users here now

A place to discuss the news and latest developments on the open-source browser Firefox

founded 4 years ago
MODERATORS
 

I read the descriptions for the Dcentraleyes and LocalCDN addons which cache popular JS frameworks and page assets to enhance privacy and speed up pages that use them (since the assets were downloaded beforehand). Does Firefox have any built-in functionality to cache frequently used assets, or are there any addons that do so?

For instance, If I access Reddit.com a lot, I would want all the resources that all those Reddit pages have in common to be cached automatically to make loading pages from the domain faster.

top 5 comments
sorted by: hot top controversial new old
[–] [email protected] 3 points 3 days ago* (last edited 3 days ago) (1 children)

Yep, every browser has a browser cache, I believe in Firefox it's set to 1GB by default? It will cache assets like JS or images on the same domain name.

[–] TheTwelveYearOld 2 points 3 days ago (1 children)

Firefox changes the capacity dynamically, I set browser.cache.disk.capacity to false in about:config and browser.cache.disk.capacity to 1024000 (the storage amount in MBs)

[–] [email protected] 3 points 3 days ago

Gotcha, mine always seems to be 1GB of space usage on all my PCs so I figured that was just the default.

[–] [email protected] 3 points 3 days ago

Yes, every browser caches resources that multiple pages of the same site use, unless the site instructs them not too.

It is also the case that almost every modern browser does not share those caches between different websites, to avoid providing a mechanism for them to share data. This means that for websites, it is no longer beneficial to use CDNs, if it ever was - in practice, it was also the case that only very few CDN resources were actually shared between different websites (since they all depended on different versions or different CDNs).

[–] [email protected] 3 points 3 days ago

It does this by default.