# HTTP/1.1, HTTP/2 and HTTP/3: what changed and why

> Each HTTP version tackled the same problem, latency, in a different way: persistent connections, multiplexing and QUIC. What it means for developers.

Published 2026-11-20 · Language: en · Tags: networking, http

The meaning of HTTP stayed the same across versions: methods, status codes and headers. What changed is how messages travel over the network.

 

## HTTP/1.1

 

HTTP/1.1 introduced **persistent connections**, so one TCP connection serves several requests. But responses come back **in order** on a connection. One slow response blocks those behind it, a problem called **head-of-line blocking**. Browsers worked around it by opening about six connections per host, and developers by bundling files and spreading assets across domains.

 

## HTTP/2

 

HTTP/2 keeps the same semantics but changes the framing:

 

- **Multiplexing**: many requests and responses share one connection at the same time, interleaved as frames.
- **Header compression (HPACK)**: repeated headers such as cookies are sent compactly.
- **Binary framing**: easier and faster for machines to parse.
- **Stream prioritisation** and optional server push, which browsers have largely moved away from.

 

Many tricks from the HTTP/1.1 era, such as domain sharding and giant bundles, stop helping and can hurt. HTTP/2 still runs over TCP, so a single lost packet stalls **all** streams on the connection, a head-of-line problem at the transport level.

 

## HTTP/3

 

HTTP/3 runs over **QUIC**, which uses UDP and implements reliability and encryption itself.

 

- Streams are independent, so loss on one does not stall the others.
- The transport and TLS 1.3 handshakes are combined, making connection setup faster.
- Connections can survive a change of network, for example from Wi-Fi to mobile data.

 

## What you do as a developer

 

1. Serve over HTTPS, which all browsers require for HTTP/2 and HTTP/3.
2. Use a CDN or reverse proxy that supports them. Enabling HTTP/2 and HTTP/3 is often a setting.
3. Stop doing HTTP/1.1 workarounds. Prefer sensible, cacheable files.
4. Keep compression (gzip or Brotli) and caching headers.

 

```bash
curl -I --http2 https://example.com | head -1     # HTTP/2 200
curl -I --http3 https://example.com | head -1     # needs a curl built with HTTP/3 support
```

 

## Takeaway

 

Each version removes a bottleneck: HTTP/2 fixes the request queue, HTTP/3 fixes the transport queue. Enable them at the edge and keep your application logic unchanged.

Source: https://tdphat.io.vn/blog/http-1-1-vs-http-2-vs-http-3
