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
Walshy
Walshy2d ago
Cloudflare supports HTTP/2 outbound yes
Joost
JoostOP2d ago
But does it always do use HTTP/2 when using fetch in a Worker? It doesn't seem like it right?
Walshy
Walshy2d ago
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)
Walshy
Walshy2d ago
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).
Walshy
Walshy2d ago
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
Joost
JoostOP2d ago
This could be actually. In the NodeJS polyfill list, HTTP/2 is not marked as supported though. Or maybe this is related to Wrangler?
No description
Walshy
Walshy2d ago
that's for Node.js, I assume you're using fetch not http2 (https://nodejs.org/api/http2.html)
Joost
JoostOP2d ago
I use fetch yeah
Walshy
Walshy2d ago
then yes, not related
Joost
JoostOP2d ago
Good to know, thank you Do you have any idea what common causes for the Error: Network connection lost. are?

Did you find this page helpful?