3 ms·
What's the hurry to optimize away the revalidation requests when the user clicks reload? Is it just beancounter mindset about saving a few "304 Not modified" re
by fulafel 9y ago
What's the hurry to optimize away the revalidation requests when the user clicks reload? Is it just beancounter mindset about saving a few "304 Not modified" responses? In that case they shouldn't count the percentage of requests, but percentage of bandwidth or CPU seconds. Tiny responses are much cheaper with HTTP/2, so be sure to benchmark with that.
- joosters 9y agoI'd be happier if my browser made fewer requests, however small they may be. Even if they make up a tiny percentage of my internet traffic, it all adds up. Making computers do less unnecessary work is a good thing.
- fulafel 9y agoPeople are notoriously poor at predicting what increases their happiness; see Daniel Gilbert's book[1]. [1] https://en.wikipedia.org/wiki/Stumbling_on_Happiness https://en.wikipedia.org/wiki/Stumbling_on_Happiness
- Denvercoder9 9y agoAt Facebook scale, the sum of all those "304 Not Modified" responses is probably a significant amount of resources.
- justinjlynn 9y agoVery few entities operate at "facebook scale".
- icebraining 9y agoBut they still account for a lot of the Web traffic.
- fulafel 9y agoI'm not sure it's a good argument to take up the biggest companies and then tally up effects of a micro improvement. You could argue for all kinds of complexity increasing changes resulting in %0.01 efficiency improvements this way.
- marcusarmstrong 9y agoAt my company, 304s account for 3% of our CDN requests.
- deleted 9y ago[deleted]
- fulafel 9y ago304 requests are so tiny that you probably end up in the order of 0.01%.
- 3pt14159 9y agoThink dropped requests. If you're operating with 99% packet loss like many people around the world minimizing the absolute number of requests can have dramatic impact on load times.
- fulafel 9y agoYou can't do anything with TCP or the web in a situation like that.
- 3pt14159 9y agoWhat do you mean? I've operated at 99% packet loss plenty of times in the rural parts of Vietnam. The key is you can't use any of the websites or apps that are popular in North America / Europe.
- fulafel 9y agoThe likelihood of even opening a TCP connection is going to be very low. For phase 1, stacks typically send 5 SYNs before giving up. So 95% of your TCP connection estabilishments will slowly fail due to timeout before you even get to phase 1 of the 3-stage connection estabilishment. To say nothing of actually transmitting or receiving any payload data successfully. Which you would have to many times to open a web page.