Do browsers take into account that network can be faster than disk cache?

2

One thing came to my mind. Nowadays the internet connection speed is often comparable to hard drive speeds. It means I can fully imagine there might be cases when it would be better (for a selfish web client) to retrieve a resource from network than to read it from disk. Especially when the size of the resource is relatively small the time cost of disk operations may exceed the download time.

Do web browsers have such a functionality?

The reason for my question is pure curiosity, not a real problem. BTW, I am not convinced such idea is worth implementing as the more bandwidth is taken for some very small local benefits.

GrzegorzOledzki

Posted 2011-04-28T19:53:01.207

Reputation: 511

I suspect confusion between normal Mb (megaBITs/sec) speeds for drives and MB (MegaBYTES/sec) for HDD speeds. Either that or a decade old drive and the fastest possible network. – Hennes – 2015-12-17T14:06:26.897

I only use ram cache in browsers. Even with a moderate speed ADSL, it's much faster than a HDD. SSD? Maybe that's better if you have an SLC drive.. or ramdisk. Otherwise? No way. – Apache – 2011-04-28T19:57:23.123

Answers

3

Keep in mind, besides sheer bandwidth, there is significant latency when traversing a network and HTTP is chatty. Additionally, every call to the server causes server load so what's best for one client may negatively affect others as well.

To directly answer your question, I doubt the browsers test network speed before choosing whether to download or use cache.

uSlackr

Posted 2011-04-28T19:53:01.207

Reputation: 8 755