Better yet.. switch to http2 (where keep-alive is deprecated): https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Ke...
Better yet.. switch to http3 - head of line blocking is no fun.
111–112 of 112 posts
Better yet.. switch to http2 (where keep-alive is deprecated): https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Ke...
People seem to always get confused by this - http/1.1 is persistent by default and the vast majority of servers/clients use it. The "Keep-Alive" header was something tacked onto http/1.0 and doesn't really mean anything these days.
Unfortunately, depends on the server. Node says this: "Sending a 'Connection: keep-alive' will notify Node.js that the connection to the server should be persisted until the next request." The article seems to confirm this behavior. So clients have to account for non RFC compliant servers.