Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions public/__redirects
Original file line number Diff line number Diff line change
Expand Up @@ -1182,6 +1182,7 @@
/support/more-dashboard-apps/cloudflare-apps/managing-cloudflare-apps/ /workers/ 301
/support/more-dashboard-apps/cloudflare-apps/removing-cloudflare-apps/ /workers/ 301
/support/troubleshooting/http-status-codes/http-status-codes/ /support/troubleshooting/http-status-codes/ 301
/support/troubleshooting/cloudflare-errors/troubleshooting-other-errors/ /speed/optimization/protocol/http2/#err_http2_protocol_error 301

# r2
/r2/platform/s3-compatibility/api/ /r2/api/s3/api/ 301
Expand Down
26 changes: 26 additions & 0 deletions src/content/docs/speed/optimization/protocol/http2.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,29 @@ To disable **HTTP/2** in the dashboard:
To disable **HTTP/2** with the API, send a [`PATCH`](/api/resources/zones/subresources/settings/methods/edit/) request with `http2` as the setting name in the URI path, and the `value` parameter set to `"off"`.

</TabItem> </Tabs>

## ERR_HTTP2_PROTOCOL_ERROR

Requests proxied by Cloudflare may result in an error for visitors with the error code `ERR_HTTP2_PROTOCOL_ERROR` visible in the Developer Tools Console. These errors are usually due to an issue on the origin web server configuration, but might only materialize when requests are proxied by Cloudflare depending on the client browser's behavior. Some possible causes are:

### Malformed HTTP response headers

The origin web server may be sending improperly formatted HTTP response headers.

#### Resolution

Make a request directly to your origin web server and inspect its HTTP response headers for anomalies. Make sure that the field values respect the following requirements:

- [RFC 9110](https://www.rfc-editor.org/rfc/rfc9110.html#section-5.5)
- [RFC 9113](https://www.rfc-editor.org/rfc/rfc9113.html#section-8.2.1)
- [RFC 5234](https://www.rfc-editor.org/rfc/rfc5234#appendix-B.1)

### Compression issues

Examples of compression issues include the origin web server serving gzip encoded compressed content but failing to update the `Content-Length` header, or the origin web server serving broken gzip compressed content.

#### Resolution

You can try to disable compression at your origin web server and rely on Cloudflare to [compress content](/speed/optimization/content/compression/).

You can also review your origin server's compression settings to make sure the compression is working as expected.

This file was deleted.

Loading