Why do web browsers not support h2c (HTTP/2 without TLS)?

Technically

There are several technical reasons why HTTP/2 is much better and easier to handle over HTTPS:

  1. Doing HTTP/2 negotiation in TLS with ALPN is much easier and doesn’t lose round-trips like Upgrade: in plain HTTP does. And it doesn’t suffer from the upgrade problem on POST that you get with plain-text HTTP/2.
  2. N% of the web doesn’t support unsolicited Upgrade: h2cheaders in requests and instead respond with 400 errors.
  3. Doing something else than HTTP/1.1 over TCP port 80 breaks in Y% of the cases since the world is full of middle-boxes that “help” out and replace/add things in-stream for such connections. If that then isn’t HTTP/1.1, things break (this is also why brotli for example also requires HTTPS).

Ideologically

There’s a push for more HTTPS on the web that is shared by and worked on in part by some of the larger web browser developer teams. That makes it considered a bonus if features are implemented HTTPS-only as they then work as yet another motivation for sites and services to move over to HTTPS. Thus, some teams never tried very hard (if at all) to make HTTP/2 work without TLS.

Practically

At least one browser vendor expressed its intention early on to implement and provide HTTP/2 for users done over plain-text HTTP (h2c). They ended up never doing this because of technical obstacles as mentioned above.

Leave a Comment