Re:A Guide to HTTP/2 Server Push
by rb808 on Monday April 10, 2017 @05:32PM
(#14082750)
What I'd love in the HTTP protocol is some way to control IPs used by client - eg fail over to different IP if first is unresponsive. Such a small client side change would make back ends much simpler.
[ Parent
| on HN ]
There's already a system to do so: it's called DNS.
You can check for timeouts using XHR already and if a server doesn't respond then having it send a new IP wouldn't work anyway.
The problem with using DNS that way is the usual 30 second time out. On the other hand lower values than 30 seconds can cause problems for many users with slow or mobile connections.
Honestly I can't think of a reason why the HTTP specifications should contain anything about IP addresses.