HTTP/2, HTTP/3 and Brotli compression for faster sites

How HTTP/2, HTTP/3 and Brotli compression speed up websites, how to check whether your site uses them, and how to enable them through hosting or a CDN.

Usman Muhammad UsmanUpdated October 13, 2026
HTTP/2, HTTP/3 and Brotli compression for faster sites

How files travel from your server to visitors affects speed as much as what the files contain. Modern protocols, HTTP/2 and HTTP/3, and better compression with Brotli make sites faster without changing a single page. Most good hosts and CDNs support them, but not every site has them enabled. Here is what they do and how to check.

HTTP/1.1 limitations

HTTP/1.1, the older version of the web’s protocol, handled requests one at a time per connection. Browsers opened several connections to download files in parallel, but pages with many files still queued up. Developers combined files and used tricks to reduce requests.

Many old optimisation habits, such as combining CSS and JavaScript files or using image sprites, came from these limitations. With modern protocols, they are often unnecessary or even counterproductive.

HTTP/2

HTTP/2 allows many requests and responses to travel over a single connection at the same time, called multiplexing. It also compresses headers and supports prioritisation. Pages with many files load more efficiently without combining them.

HTTP/2 requires HTTPS in browsers. Almost all modern hosts support it. Because of multiplexing, combining files usually brings little benefit; see minify, combine and defer safely.

Protocols and compression
What it improvesHow to enable
HTTP/2Many files over one connectionMost hosts by default
HTTP/3Faster setup, better on mobileCDN or LiteSpeed host
GzipSmaller text filesServer default
BrotliEven smaller text filesCDN or modern host
TLS 1.3Faster secure connectionsHost or CDN

HTTP/3

HTTP/3 runs over QUIC, a protocol built on UDP rather than TCP. It sets up connections faster, handles packet loss better and copes better with network changes, such as switching from Wi-Fi to mobile data. Benefits are greatest on mobile and unreliable networks.

Major browsers support HTTP/3, and CDNs such as Cloudflare enable it easily. Some hosts support it directly, especially those using LiteSpeed web servers. Browsers fall back to HTTP/2 automatically if HTTP/3 is unavailable.

Gzip compression

Text files such as HTML, CSS and JavaScript compress very well. Gzip compression, supported for decades, reduces their size significantly before sending them, and browsers decompress them instantly. Almost every server supports it.

Images and videos are already compressed in their own formats, so gzip does not help them. Make sure gzip or Brotli is enabled for text-based files.

Brotli compression

Brotli is a newer compression algorithm, developed by Google, that typically produces smaller files than gzip for text resources. All modern browsers support it over HTTPS. Smaller files download faster, especially on slow connections.

Many CDNs, including Cloudflare, apply Brotli automatically. Some hosts support Brotli on the server. If your host only offers gzip, a CDN can add Brotli for visitors.

Check what your site uses

In Chrome DevTools, open the Network tab, right-click the column headers and enable Protocol. Reload the page to see whether files load over h2 (HTTP/2) or h3 (HTTP/3). The response headers show content-encoding as br for Brotli or gzip.

Online tools can also test HTTP/2, HTTP/3 and compression support. PageSpeed Insights warns if text compression is missing.

Enable through your host

Most quality hosts enable HTTP/2 and compression by default. If yours does not, ask support or check the control panel. LiteSpeed-based hosts often support HTTP/3 out of the box.

If your host does not support modern protocols, it may be outdated in other ways too. See choosing WordPress hosting.

Enable through a CDN

A CDN such as Cloudflare handles the connection between visitors and the CDN, so it can provide HTTP/3 and Brotli even if your origin server does not. Enable HTTP/3 and Brotli in the CDN’s settings; on Cloudflare, they are simple toggles or enabled by default.

The connection from the CDN to your server can still use HTTP/1.1 or HTTP/2, which matters less because CDN-to-server connections are optimised and fewer. See setting up Cloudflare.

TLS and connection setup

Modern TLS versions, such as TLS 1.3, set up secure connections faster than older versions. Combined with HTTP/3, connection setup time drops noticeably, especially on mobile networks with high latency.

Make sure your SSL configuration uses current TLS versions and disables outdated ones. Your host or CDN usually handles this. See setting up SSL and HTTPS.

Expectations

Protocol and compression improvements are typically modest compared with fixing images, caching and scripts, but they apply to every page and every visitor with no ongoing work. They are worth enabling once and forgetting.

They do not fix slow server response or heavy pages. Use them alongside the main improvements in how to speed up a WordPress website.

Caching headers and compression together

Compression and caching headers work together. Brotli or gzip make files smaller on the first download, while long cache lifetimes let browsers reuse them on later pages and visits without downloading again. Check that static files such as CSS, JavaScript, fonts and images have long Cache-Control lifetimes.

Versioned file names, which WordPress and Shopify use automatically, make long cache lifetimes safe because updated files get new URLs. PageSpeed Insights flags static assets with short cache lifetimes. Fixing this is usually a hosting or CDN setting rather than a change to the site itself.

Getting help

Checking and enabling HTTP/2, HTTP/3 and Brotli is part of every speed optimization audit I do, along with hosting and CDN configuration.

For server response improvements, see reducing TTFB. For CDN decisions, read do you need a CDN.

Key takeaways

  • HTTP/2 multiplexes requests, so combining files is rarely needed.
  • HTTP/3 sets up connections faster and helps on mobile networks.
  • Brotli compresses text files smaller than gzip.
  • A CDN can provide HTTP/3 and Brotli even if your host does not.

Frequently asked questions

How do I know if my site uses HTTP/2?

Enable the Protocol column in Chrome DevTools' Network tab and look for h2 or h3.

Is HTTP/3 safe to enable?

Yes. Browsers fall back to HTTP/2 automatically if needed.

Does Brotli work on all browsers?

All modern browsers support Brotli over HTTPS.

Should I still combine CSS files?

Usually not on HTTP/2 or HTTP/3.

Does Cloudflare support HTTP/3 and Brotli?

Yes. They can be enabled in the dashboard and are often on by default.

Will these changes improve Core Web Vitals?

Modestly. They reduce download and connection times, which helps LCP slightly.

Free website audit

Get a free audit of your website

Tell me your URL and I'll send a short, prioritized list of the speed, SEO and security fixes that will make the biggest difference.

  • No obligation, no sales call
  • 5.0 rating on Google and Upwork
  • Reply within one business day
Written by Muhammad UsmanWeb Development Team Lead with 5+ years building WordPress, WooCommerce, Shopify and Wix websites. Experience · Certificates About me

More on Speed & Core Web Vitals

All Speed & Core Web Vitals articles

Have a project in mind?

Tell me what you're building and I'll reply with next steps and an estimate.