Which HTTP version is your connection using, and how do you move up?
Every time your browser loads a page it speaks one of three versions of HTTP. This page shows which one you just used, explains what the difference means without the marketing, and walks through moving a website off the oldest version.
Checking your connection…
The lookup shows the HTTP version a site uses, whether it announces HTTP/3, and whether it supports HTTPS at all.
The three versions in plain terms
| Version | What changed | Good to know |
|---|---|---|
| HTTP/1.1 (1997) | One request at a time on each connection. Browsers get around that by opening several connections. | Still used by roughly one home page in five (HTTP Archive, 2024). |
| HTTP/2 (2015) | Many requests share one connection (multiplexing), and headers are compressed. | Browsers only use it over HTTPS. |
| HTTP/3 (2022) | Runs over QUIC on UDP instead of TCP. Copes better with lost packets and sets up connections faster. | Needs UDP port 443 to be open. Browsers learn a site offers it from an Alt-Svc header, so the first visit usually still uses HTTP/2. |
Is it worth moving?
Usually yes for HTTP/2, and HTTP/3 is a free extra if your host or CDN offers it. Neither is magic, so expect improvements, not miracles.
- HTTP/2 helps most on pages made of many small files, over HTTPS. If your site is already bundled into a few files, the gain is smaller. Pages on HTTP/2 or HTTP/3 use fewer connections than on HTTP/1.1 (HTTP Archive Web Almanac 2024).
- HTTP/3 helps most on slow, high-latency or lossy connections such as mobile, and when a connection is first set up. On a fast, clean connection it can be about the same or slightly worse. In Cloudflare's own 2020 test (vendor-run, and from before HTTP/3 was finished) HTTP/3 was faster to the first byte (176 ms against 201 ms) but 1–4% slower on a real page and marginally slower on a 1 MB file. An APNIC review found real but modest gains, concentrated in connection setup and on poorer networks.
- Server push, once a headline feature of HTTP/2, is effectively dead: it is deprecated and Chrome and Edge have removed it. Ignore guides that sell it.
- Be wary of vendor claims such as "faster without any optimisation". The evidence does not support them.
Who is stuck on HTTP/1.1? Mostly smaller sites without a CDN. The Web Almanac found under 4% of requests served by CDNs used HTTP/1.1, against up to 29% for requests that did not go through one.
Why a site is still on HTTP/1.1
Work down this list. The first match is usually the answer.
- No HTTPS. Browsers only speak HTTP/2 over an encrypted connection. A site served over plain
http://stays on HTTP/1.1. This is the most common cause and the easiest to rule out. - The server module is missing or off. Apache needs its
mod_http2module. Without it the server simply never offers HTTP/2, even though everything else works and nothing shows an error. It is a surprisingly common cause, and the fix is installing and enabling the module. - Apache is running in "prefork" mode. Prefork is often chosen because of PHP's older
mod_phpsetup. Apache's own documentation says that under prefork HTTP/2 has severe restrictions: it handles one request at a time on each connection, so slow requests stall the rest. - Old or weak TLS settings. HTTP/2 needs a TLS library with ALPN support (OpenSSL 1.0.2 or newer) and a sound cipher suite. A poor cipher setting makes browsers fall back to HTTP/1.1.
- nginx built or configured without it. It needs the HTTP/2 module and, from version 1.25.1, the line
http2 on;. - No CDN in front. A CDN or proxy handles HTTP/2 and HTTP/3 for visitors whatever your own server does.
- A DNS-only record. With Cloudflare, a "grey cloud" (DNS-only) record sends visitors straight to your server, bypassing the proxy. Then your own server has to offer HTTP/2 itself.
- Shared hosting. On shared hosting your host decides, and you cannot change it yourself.
- Something on the visitor's side. A work or school proxy, or security software that inspects HTTPS, can force HTTP/1.1 even when the site offers more.
The two-hop catch with Cloudflare and other proxies
When a site sits behind a proxy or CDN, there are two separate connections: browser to the proxy, and proxy to your server. They can use different versions. Almost no guide explains this.
- Visitors get HTTP/2 from Cloudflare on the first hop even if your own server is stuck on HTTP/1.1.
- Cloudflare uses HTTP/2 to talk to your server by default and falls back to HTTP/1.1 if the server does not offer it. It does not yet support HTTP/3 to the origin.
- So behind Cloudflare, "my server is on HTTP/1.1" is a smaller problem than it looks. A DNS-only record is different: there is no proxy, and your server is the only hop.
How to move up, by setup
My site is behind Cloudflare
- Make sure the record is proxied (orange cloud) in the Cloudflare DNS settings. A grey-cloud record bypasses everything below.
- HTTP/2 for visitors is on by default.
- For HTTP/3, open the dashboard, choose your site, then Speed > Settings > Protocol Optimization and switch HTTP/3 on. It is available on every plan and needs the Cloudflare certificate to be active on the site.
- There is nothing to open on your own server, because HTTP/3 only covers the browser-to-Cloudflare hop. Visitors on networks that block UDP port 443 simply fall back to HTTP/2.
- Optionally, make your own server offer HTTP/2 too (see the Apache and nginx sections). Cloudflare then uses it on the second hop.
I'm on shared or cPanel hosting
- Check that HTTPS is working for your domain first (most hosts issue a free certificate automatically). Without it nothing else matters.
- Ask your host whether HTTP/2 is enabled for your account. On most shared hosts it is the host's setting, and you cannot change it yourself.
- If it is not available, the simplest fix is to put Cloudflare in front (the free plan is enough). Visitors then get HTTP/2, and HTTP/3 if you switch it on, whatever your host does.
- If you manage the server yourself with WHM (root access), enable the HTTP/2 module (
mod_http2) in EasyApache 4 and use the event MPM rather than prefork. Check cPanel's documentation for your version before changing the Apache build.
I run Apache myself
- Load the module. On Debian or Ubuntu:
sudo a2enmod http2. Elsewhere, addLoadModule http2_module modules/mod_http2.so. - Tell Apache to offer it, with HTTP/2 first:
Protocols h2 http/1.1
Put it in the server configuration or inside a specific<VirtualHost>. - The site must be served over HTTPS, and your TLS library must support ALPN (OpenSSL 1.0.2 or newer). Use a modern
SSLCipherSuite. - Use the event MPM. If you use
mod_phpyou are on prefork, so switch PHP to PHP-FPM first, then to event. - Restart Apache and check it worked (below).
I run nginx myself
- Version 1.25.1 or newer:
server { listen 443 ssl; http2 on; ssl_certificate /path/to/fullchain.pem; ssl_certificate_key /path/to/privkey.pem; } - On older versions the directive goes on the listen line:
listen 443 ssl http2;. - nginx must be built with the HTTP/2 module (
--with-http_v2_module, standard in distribution packages) and linked to a TLS library with ALPN. - For HTTP/3 you need nginx 1.25.0 or newer built with QUIC support, TLS 1.3, a
listen … quicline, anAlt-Svcresponse header that announces it, and UDP port 443 open in the firewall. See nginx's QUIC documentation for the exact lines for your build.
Another CDN, a tunnel, or I'm not sure
- Most CDNs have HTTP/2 and HTTP/3 switches in their dashboard. Turn them on and test.
- Tunnels and some reverse proxies talk to your server over HTTP/1.1 by default. That affects only the second hop. Visitors still get what the proxy offers.
- Not sure what you have? Use the box at the top of this page to look up your site. The result also says whether HTTPS works and whether HTTP/3 is announced, which narrows the cause quickly.
Check that it worked
- In the browser: open the developer tools, go to the Network tab, right-click the column headings and add Protocol. You will see
h2orh3. After enabling HTTP/3, reload twice: browsers learn about it from the first response. - On the command line:
curl -sI --http2 -o /dev/null -w '%{http_version}\n' https://example.comprints2when HTTP/2 works. Use--http3for HTTP/3 (your curl must be built with it). Not every curl is. - The announcement header:
curl -sI https://example.com | grep -i alt-svcshowsh3=":443"when the site announces HTTP/3. - With this site: use the lookup box at the top. Note that this site can read the announcement but cannot itself speak HTTP/3, so "announced" means the site says it offers it, not that we proved it.
Common mistakes
- Enabling HTTP/3 but leaving UDP 443 blocked. Browsers then quietly fall back to HTTP/2, so nothing looks broken and nothing improves.
- Testing straight after a change. A CDN or browser cache can show the old result for a few minutes.
- Judging by page-speed scores alone. Image size, scripts and caching usually matter more than the HTTP version.
Sources
- Apache: HTTP/2 guide (module,
Protocols, ALPN, prefork limits) - nginx: ngx_http_v2_module (
http2 on;from 1.25.1) - Cloudflare: HTTP/3 and HTTP/2 to origin
- HTTP Archive Web Almanac 2024: HTTP (adoption, CDN link)
- Cloudflare, 2020: HTTP/3 vs HTTP/2 (vendor test, dated)
- APNIC: measuring HTTP/3 real-world performance