4 ms·
Except for Chrome, and firefox users who have explicitly configured their cache size, most browsers have a very limited cache, with the average sizing being ~50
by arohner 11y ago
Except for Chrome, and firefox users who have explicitly configured their cache size, most browsers have a very limited cache, with the average sizing being ~50MB. For everything. I don't know about you, but I've loaded 50MB already today. Because of that, I don't worry about cache hits, because the median visitor will have nothing cached. Instead, worry about total page size, and total number of http requests. Minifying dramatically helps the number of http requests.
- jwoah12 11y agoI just checked my preferences on Firefox 39 on OS X, and my cache is 350mb by default (I never changed it).
- strommen 11y agoGreat point, and caches are even smaller on mobile. I think it depends on your use case. If your page views are mostly new users (e.g. you're a content publisher), then cachability doesn't matter too much. But if you're writing a web app hoping to have high engagement with users that return to the site frequently, it's likely you can be pretty effective with caching. Also - I kinda doubt that browser caches use a simple LRU replacement policy. I suspect they have some heuristics built in to guess what is most likely to be re-used. I don't know for sure though...it would be interesting to know.
- marcosdumay 11y agoI've never configured my cache in Firefox. Just looked at the settings, and, as far as I get what's written (it's not very clear), there's no limit at all on my cache size. It's currently using 350MB.
- kevinnk 11y agoChrome has several different caches (HTTP, DNS, SSL session data, etc.) but looking at just the on disk HTTP cache my laptop is currently using 201MB with the default settings. For anyone else who is interested, you can see the cache stats at chrome://net-internals/#httpCache
- paulirish 11y ago199MB here. I think Chrome defaults to 200MB, yeah.
- paulirish 11y agoNot sure about these numbers, but.. yes, in general browser disk caches are not nearly as effective as people imagine. Even jQuery from the Google CDN is rarely present in a cache. They are great for navigating around the same site in one session, but not effective for much more than that.