Skip to content

HTTP/2#

What we've used above is HTTP/1.1. A lot of HTTP requests in 2022 are over HTTP/2. Here's the key difference HTTP/2 offers over other versions:

It's way more efficient. Data is essentially "forward loaded" by the web server because it knows the web browser is going to need certain resources before the browser even requests them (because the website authors know what makes up their website, right?)

Encryption is required with HTTP/2 when using a modern browser. The design of the protocol doesn't demand it, but how browser vendors have chosen to implement it means encryption is mandatory, so you cannot access a website over HTTP/2 without TLS.

HTTP/2 is backwards compatible with older versions of HTTP.