Better HN
topnewbestaskshowjobs
Log inSign up

szym

3 karma · joined Dec 8, 2010 (15y ago) · 3 submissions

Submissions

comment 10y ago · link · parent

Indeed, for example Chrome wants to cache DNS results for at least a minute [1].

However, Chrome and Firefox cache the complete DNS/getaddrinfo response, i.e. all addresses. Therefore a server taken out of rotation will be quickly identified when a socket connection fails.

[1] https://cs.chromium.org/chromium/src/net/dns/host_resolver_i...

comment 11y ago · link · parent

Could leverage HTTP Client Hints: https://github.com/igrigorik/http-client-hints

comment 11y ago · link · parent

Could use range requests (RFC 7233), albeit with some overhead.