Blog / Web management /
HTTP/2, HTTP/3 and CDNs: what site owners need to know
“The site’s slow. Let’s move to HTTP/3.” Or: “Let’s stick a CDN in front of it.”
Maybe. But a protocol won’t fix a 4MB hero image, a slow database query or a third-party script that blocks the page. The network layer is one part of performance, not a shortcut around the rest.
HTTP/2 and HTTP/3 are newer versions of the protocol browsers and servers use to swap requests. A content delivery network (CDN) stores or routes content through infrastructure closer to your visitors. As a site owner, skip “Which acronym wins?” and ask: where is the delay, and what can this change actually improve?
HTTP/2: more efficient connections
HTTP/2 brought multiplexing, which lets several requests share one connection, plus header compression. Older HTTP/1.1 setups opened several connections or used workarounds to cut request overhead. HTTP/2 makes delivery more efficient, especially when a page needs many resources.
Browser and server negotiate support, usually over HTTPS. You rarely configure HTTP/2 inside WordPress or Shopify itself. Your host, proxy or CDN controls it. Check the hosting documentation or a browser’s network panel before assuming which protocol a site uses.
HTTP/2 doesn’t shrink your assets or speed up your server. A big image still has to transfer. A slow backend still has to build its response. Too much JavaScript still delays interaction. Protocols help transport. They don’t replace page optimisation.
HTTP/3: a different transport underneath
HTTP/3 uses QUIC, which runs over UDP rather than TCP. Packet loss on one stream needn’t stall the others the way TCP head-of-line blocking does, and connection setup can be quicker in some situations. That may help on networks with latency or packet loss, like mobile connections.
It doesn’t mean HTTP/3 is visibly faster for everyone. The difference depends on the network, server, browser and workload. A browser can fall back to another version if the route isn’t available. With a CDN, the CDN may negotiate at its edge and talk to the origin differently.
Don’t base a migration decision on one synthetic test. First establish which protocol is served and where. Then compare repeated tests under similar conditions, using lab tools and real-user data where you have it. One speed score can’t tell you whether HTTP/3 caused a change.
What a CDN does
A CDN can cache static assets such as images, CSS and JavaScript and serve them from locations closer to users. It may also offer security features, TLS termination, traffic routing or compression, depending on the provider and configuration.
Caching is where most practical gains come from. If an asset can be safely reused, it needn’t travel from the origin on every request. But cache rules must respect personal or changing content. A cached account page, basket or personalised response can show the wrong data if configured carelessly.
A CDN adds a layer to understand. DNS points traffic to the CDN, the CDN contacts the origin, and certificates and cache rules decide what users get. A careless DNS change can break email or other subdomains if records are replaced rather than edited. Before I change anything, I record the current values, and afterwards I test the site’s key functions.
Diagnose before changing providers
Use a waterfall or the browser’s network panel to see which requests take time. Is the first server response slow? Are the images huge? Do scripts block rendering? Does the page call lots of third-party services? If the bottleneck is an application query or image payload, switching protocol will change little.
Check server response and assets separately. Compare a mostly static page with one that has dynamic search or checkout. Test from the locations your audience uses, since a result from a nearby data centre may not represent a customer far away. Repeat the test and note the cache state: a warm cache and a cold first visit behave differently.
As of March 2024 the Core Web Vitals are LCP, INP and CLS. They show what real users experience, but they don’t tell you which infrastructure to buy. Pair them with diagnostics to find the element, interaction or layout shift that needs attention.
Choose a CDN for a reason
A CDN can be worth it when your audience is spread across regions, the origin needs protection, static assets are costly to deliver or your host offers limited caching. It may be unnecessary if the platform already includes decent edge delivery and the real problem is elsewhere.
Count the operational cost too. Who manages DNS? Who can purge or change cache rules? What happens if the CDN goes down? How are origin certificates renewed? Is there a staging path? A provider can improve resilience, but it adds configuration somebody must own.
With an existing setup, document the current DNS, SSL and proxy state first. In a managed environment, coordinate with the site owner and hosting support. I’d never switch nameservers in a busy period without a rollback plan.
Related reading
- The HTTP status codes every site owner should recognise
- How to check if a WordPress theme is slowing you down
- Image formats: WebP, AVIF and when JPEG is fine
Before you change infrastructure, find the slowest step in one real page load. Is the delay in the connection, the server, the assets or the code running in the browser?