logoalt Hacker News

seki285 • today at 6:50 PM • 5 replies • view on HN

Any reason to be still using HTTP/1 in 2026?


Replies

hnav • today at 8:11 PM

It's mostly the property of servers and clients that you interoperate with that don't speak H/2. There are other situations too like if you run a CDN and you're doing sendfile with kernel TLS, you can do stuff like the below

  sock.write('HTTP/1.1 200 OK\r\ncontent-length: ' + f.size() + '\r\n\r\n')
  sendfile(sock, f)
which wouldn't work with H2/H3. WebSockets are still in practice H/1 only (spec exists but is disabled in browsers). Another aspect is that if you're simply using HTTP as a preamble to 1 large (bidi) pipe, the extra framing and flow control of H/2 is just a performance handicap.
nasretdinov • today at 7:01 PM

If you don't need SSL you can't use HTTP/2 or HTTP/3. It doesn't make sense for externally facing services but sometimes is ok or even unavoidable for local networks

➕ show 2 replies
siren2026 • today at 8:14 PM

believe it or not but Cloudfront only supports HTTP/1 to origin. Some other CDNs as well.

afavour • today at 6:54 PM

You’re requesting from a third party backend you don’t control?

trgn • today at 6:52 PM

imo, it's obvious for people writing ajax-y web apps, but backend devs need convincing.