Workers HTTP/2 support?
Is it right that Workers do not support sending fetch requests with HTTP/2? Apple's push notification service (APNS) is requiring that.
Use HTTP/2 and TLS 1.2 or later to establish a connection between your provider server and one of the following servers.When sending a normal fetch request I get this error:
Error: Network connection lost.
I think this is because Apple drops all non-HTTP/2 requests. Anyone who can help me out?10 Replies
Cloudflare supports HTTP/2 outbound yes
But does it always do use HTTP/2 when using
fetch
in a Worker? It doesn't seem like it right?We won't always, it depends on 1. zone setting (do you have h2 origin enabled) and 2. if the origin actually accepts us upgrading to h2 (and does not advertise h2)
Cloudflare Docs
HTTP/2 to Origin
A protocol is a set of rules governing the exchange or transmission of data between devices. One of the most important protocols that run on the human-computer interaction layer, where applications can access the network services, is HTTP (Hypertext Transfer Protocol).
but for here, it sounds like 2 should not apply. So possibly 1 though this has been default for a long time
So my money is on h2 is not related here
This could be actually. In the NodeJS polyfill list, HTTP/2 is not marked as supported though. Or maybe this is related to Wrangler?

I use
fetch
yeahthen yes, not related
Good to know, thank you
Do you have any idea what common causes for the
Error: Network connection lost.
are?