HTTP/2, HTTP/3 and HSTS 2026: what you have, how to check, how to enable

HTTP/2 became a standard in 2015, HTTP/3 (QUIC-based) was finalised in 2022. Most of the global internet already uses both, but many sites in 2026 still run on the old HTTP/1.1. The difference in performance is serious: HTTP/2 gives a 10-30% faster page load, HTTP/3 another 10-20% on mobile and unstable networks. Plus HSTS ensures that visitors always arrive over HTTPS, not allowing downgrade attacks.

This guide shows what HTTP/2, HTTP/3 and HSTS really do, how to check whether your site is on them, how to enable them, and what the traps are before a production deploy.

HTTP/1.1 vs HTTP/2 vs HTTP/3: the important differences #

HTTP/1.1 (1997) #

  • One request per TCP connection at a time (sequential).
  • The browser typically opens 6 parallel connections per host, which is a workaround but has overhead.
  • No header compression: every request repeats the same headers.
  • Round-trip latency penalty.

HTTP/2 (2015) #

  • Multiplexing: all requests in parallel over one connection.
  • HPACK header compression: less overhead.
  • Server push (deprecated in Chrome in 2022, but it exists).
  • A binary protocol instead of a textual one (efficient parsing).
  • Still TCP-based: head-of-line blocking if one packet is late.

HTTP/3 (2022) #

  • Based on QUIC instead of TCP: UDP-based, a custom transport.
  • No head-of-line blocking: packet loss does not block other streams.
  • 0-RTT connection resumption: repeat visits skip the TLS handshake.
  • Great for mobile and unstable networks (auto-reconnects if the network changes IP).
  • Built-in encryption: everything is encrypted, always (TLS 1.3).

How to check what your site supports #

1. Browser DevTools #

  1. Open the site in Chrome.
  2. F12 → Network tab.
  3. Refresh the page.
  4. Right-click any header column → enable Protocol.
  5. In the Protocol column you see h2 (HTTP/2), h3 (HTTP/3), http/1.1 or http/2+QUIC.

2. Online testers #

3. Command line #

# Test HTTP/2
curl -I --http2 https://tvojsajt.hr

# Test HTTP/3
curl -I --http3 https://tvojsajt.hr  # needs curl 7.66+

# Check the Alt-Svc header (tells the browser that HTTP/3 exists)
curl -I https://tvojsajt.hr | grep -i alt-svc

How to enable HTTP/2 #

In 2026, HTTP/2 is the default on all modern web servers:

  • Apache 2.4.17+: the mod_http2 module. Enable it in httpd.conf with Protocols h2 h2c http/1.1.
  • Nginx 1.9.5+: listen 443 ssl http2; in the server block.
  • LiteSpeed: enabled by default, no config needed.
  • Caddy: enabled automatically.

Condition: SSL/TLS enabled (HTTP/2 in browsers works only over HTTPS).

On cPanel hosting (like WMD's), it is already enabled.

How to enable HTTP/3 #

HTTP/3 requires a bit more configuration and a UDP port 443 firewall rule.

Nginx + QUIC #

Nginx has had native HTTP/3 support since 1.25 (2023). Configuration:

server {
    listen 443 ssl;
    listen 443 quic reuseport;
    http2 on;
    http3 on;
    ssl_certificate /path/to/cert.pem;
    ssl_certificate_key /path/to/key.pem;
    add_header Alt-Svc 'h3=":443"; ma=86400';
}

Firewall: allow UDP 443 at the network layer.

LiteSpeed #

LiteSpeed Enterprise and OpenLiteSpeed, which some other hosts use, have QUIC built in.

Apache + HTTP/3 #

Apache has no native HTTP/3 support in 2026. A workaround: put Nginx in front of Apache (a reverse proxy) for HTTP/3 termination.

Cloudflare #

If you use Cloudflare in front of the site, HTTP/3 is enabled with one click in the dashboard (Network → HTTP/3 (with QUIC) → ON). The site automatically gets HTTP/3 at the edge level, even if the origin server does not support it.

HSTS: what it is and why you need it #

HTTP Strict Transport Security (HSTS) is an HTTP header that tells the browser: "for this domain, always use HTTPS, never HTTP, even if the user clicks an http:// link".

Without HSTS, a user who types yoursite.hr into the browser goes to HTTP, and the server does a 301 redirect to HTTPS. That one HTTP request is vulnerable to a MITM attack (a downgrade attack): an attacker can intercept it and redirect to a fake HTTPS site.

With HSTS, the browser remembers that the site is HTTPS-only and refuses to go over HTTP, regardless of what the user types.

How to enable HSTS #

Apache #

# In .htaccess or the Apache config
<IfModule mod_headers.c>
    Header always set Strict-Transport-Security "max-age=31536000; includeSubDomains"
</IfModule>

Nginx #

add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;

WordPress plugin #

An HSTS plugin or Wordfence/Solid Security gives you an HSTS toggle in the GUI.

Cloudflare #

In the dashboard: SSL/TLS → Edge Certificates → HTTP Strict Transport Security (HSTS) → Enable.

HSTS parameters #

  • max-age=31536000: how many seconds the browser remembers (a year = 31536000).
  • includeSubDomains: also applies to all subdomains (e.g. blog.yoursite.hr).
  • preload: a candidate for the HSTS preload list (see below).

HSTS preload list: when and when NOT #

The HSTS preload list is a list of domains in Chromium (and other browsers) that are always HTTPS, even on the first visit. Faster than header-based HSTS.

For preload you need to:

  1. Have an HSTS header with max-age=31536000 + includeSubDomains + preload.
  2. All subdomains must be HTTPS-only.
  3. Submit at hstspreload.org.

Caution: once you are on the preload list, getting removed takes 3-6 months through the Chrome release cycle. If you might ever need HTTP (e.g. for a dev subdomain), do not preload.

Recommendation for 2026: enable the HSTS header with a max-age of 6 months (15768000) to begin with, and increase it to a year after a month of testing. Preload only if you are 100% sure you will never need an HTTP fallback.

Performance impact: realistic #

A typical WordPress site, 4G mobile connection:

ProtocolTTFBTotal page loadDifference
HTTP/1.1~350ms~3.2sbaseline
HTTP/2~280ms~2.4s-25%
HTTP/3~220ms~1.9s-40%

The numbers are indicative: they vary depending on the number of resources, the geographical distance from the server, and the client's network.

Traps and common mistakes #

  1. HTTP/2 requires a valid SSL: Let's Encrypt is OK, a self-signed cert does not work in production browsers.
  2. HTTP/3 needs UDP 443 open in the firewall: some ISPs/corporate firewalls block it.
  3. HSTS preload is one-way: think before you add it.
  4. HSTS without SSL = the site is unavailable: if HSTS is active and the SSL expires, the browser blocks visits (good security, but know the risk).
  5. Server push (an HTTP/2 feature) has been deprecated in Chrome since 2022. Do not rely on it.

HTTP/2 and HTTP/3 on WMD hosting #

On WMD hosting HTTP/2 works on its own, with a free SSL that renews itself. There is no HTTP/3 on our servers, so you only get it with Cloudflare in front of the site, and you have the steps in the guide Cloudflare in front of the web.

Frequently asked questions #

Do I need to enable HTTP/3 manually if I use Cloudflare?
No, Cloudflare does it automatically at the edge. Your origin can stay on HTTP/2. CF converts to HTTP/3 towards the visitor.

Will HTTP/3 break anything?
Rarely. Browsers have an automatic fallback to HTTP/2 if HTTP/3 does not work. Worst case: a few % of users get HTTP/2 instead of HTTP/3.

What about WebSockets and HTTP/3?
WebSockets by standard exist only over HTTP/1.1. WebTransport (the HTTP/3-native API) is an alternative, but still emerging. For most use cases, WebSockets over HTTP/1.1 still work fine.

HSTS preload: how do I go back if I need to?
Submit a removal request at hstspreload.org. The Chrome removal cycle takes 3-6 months. Plus, updating the browser version in the meantime continues to force HTTPS.