this post was submitted on 27 Jun 2024
14 points (93.8% liked)

Firefox

17898 readers
107 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
[–] Album@lemmy.ca 3 points 4 months ago

It does this by default.

[–] Vincent@feddit.nl 3 points 4 months 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).

[–] MangoPenguin@lemmy.blahaj.zone 3 points 4 months ago* (last edited 4 months 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@lemmy.world 2 points 4 months 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)

[–] MangoPenguin@lemmy.blahaj.zone 3 points 4 months ago

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