Incorrect clientAcceptEncoding in Pages

For Workes & Pages, what is the name of the domain?

orca.pet

What is the issue or error you’re encountering

request.cf.clientAcceptEncoding always contains “gzip”, instead of the true client Accept-Encoding header.

What are the steps to reproduce the issue?

If you access https://orca.pet/params (which just displays all data available in the request.headers and request.cf objets), you’ll see that request.cf.clientAcceptEncoding is always “gzip”, even if my browser is asking for brotli as well. The same happens when requesting any encoding (be it a real one or a bogus one) using curl.

Screenshot of the error

req.png

As a workaround, you can create a new transformation rule to define a custom header that will have the true Accept-Encoding from the client’s request: