HTTP/2 and HTTP/3 Explained
HTTP/2 and HTTP/3 are newer versions of the HTTP protocol that let a browser and server exchange many requests and responses over a single connection at the same time, instead of one at a time as in HTTP/1.1. HTTP/3 goes further by running over QUIC, a transport built on UDP, which avoids a slowdown called head-of-line blocking that can still affect HTTP/2 when a single packet is lost. Most current browsers and many hosting setups already support both, usually enabled alongside HTTPS.
The problem with HTTP/1.1
Under HTTP/1.1, a single connection could only handle one request at a time; the browser had to wait for a response before sending the next request on that same connection. Browsers worked around this by opening several parallel TCP connections to the same server, but each connection carries its own setup overhead, and browsers still cap how many connections they will open per domain. The result was a protocol that worked, but left real performance on the table, especially on pages that load dozens of small files.
What HTTP/2 changed
HTTP/2 introduced multiplexing, which lets many requests and responses travel over one connection at the same time, interleaved rather than queued. It also compresses headers with a technique called HPACK, which cuts down repeated overhead on every request. An early HTTP/2 feature called server push, which let a server send resources before the browser asked for them, has since fallen out of favor and been removed from most major browsers because it rarely delivered the expected gains in practice.
| Feature | HTTP/1.1 | HTTP/2 |
|---|---|---|
| Connections needed per domain | Often several, opened in parallel | Usually one, shared by many requests |
| Request handling | One at a time per connection | Many interleaved on the same connection |
| Headers | Plain text, repeated on every request | Compressed with HPACK |
| Transport | TCP | TCP |
What HTTP/3 changes again
HTTP/3 keeps the same general idea as HTTP/2 but replaces its transport layer. Instead of running over TCP, HTTP/3 runs over QUIC, a newer transport protocol built on top of UDP. Because QUIC tracks each stream independently, a single lost packet only affects the one stream it belongs to, instead of stalling every other request on the connection the way a lost TCP packet can under HTTP/2, a problem known as head-of-line blocking. QUIC also folds encryption setup into its connection handshake, so establishing a secure HTTP/3 connection typically takes fewer round trips than HTTP/2 over TCP plus TLS, which especially helps on mobile networks with higher latency or frequent network switches.
Checking and enabling HTTP/2 and HTTP/3 on your hosting
Most managed hosting, CDNs and modern server software enable HTTP/2 automatically once HTTPS is active, and a growing number also support HTTP/3. You can check which protocol a response actually used from a terminal:
curl -I --http2 https://example.com
curl -I --http3 https://example.com
On a self-managed Nginx server, HTTP/2 is enabled on the listen directive inside a server block:
server {
listen 443 ssl http2;
server_name example.com;
...
}
HTTP/3 support requires a server build with QUIC support and typically an additional UDP listener alongside the usual TCP one; exact directives vary by server version, so check your web server's current documentation before changing a production configuration.
Frequently asked questions
Do I need HTTP/3 if I already have HTTP/2?
Not strictly. HTTP/2 already removes most of the head-of-line blocking problems HTTP/1.1 had. HTTP/3 adds further gains, mainly on unstable or high-latency connections such as mobile networks, but a site running HTTP/2 well is not broken or outdated.
Does HTTP/2 or HTTP/3 require HTTPS?
HTTP/2 does not technically require encryption, but in practice every major browser only supports HTTP/2 over an HTTPS connection. HTTP/3 is built on QUIC, which includes encryption by design, so it is effectively always encrypted.
How do I know if my website is using HTTP/2 or HTTP/3?
Open your browser's developer tools, go to the network tab, and check the protocol column for a request to your site, or run a curl command with the --http2 or --http3 flag from a terminal to see which protocol the server actually responds with.
Will switching to HTTP/3 break anything for visitors on older browsers?
No. Browsers and servers negotiate the best protocol both sides support, so a visitor on an older browser that lacks HTTP/3 simply falls back to HTTP/2 or HTTP/1.1 without any visible error.
Is HTTP/2 server push still used?
Rarely. Server push was part of the original HTTP/2 specification, but most major browsers removed support for it after real-world use showed it often did not deliver the performance benefit it promised.
Does my hosting provider need to do anything to enable HTTP/2?
On most managed hosting and CDNs, HTTP/2 is already enabled automatically once a site uses HTTPS, with no action needed. On a self-managed server, it may need to be turned on explicitly in the web server's configuration.
Related topics
- HTTP vs. HTTPS Web Servers
- What Is LiteSpeed? Web Servers
- What Is a Web Server? Web Servers
- What Is an SSL Certificate? Security & SSL
- What Is Latency and Ping? Networking & IP