GZIPed responses from my origin are being decompressed with `Content-Type: application/octet-stream`

I am serving my responses from my origin compressed with gzip and content-encoding: gzip and content-type: application/octet-stream headers. When I request from this server the response I get back is not gzipped even though the accept-encoding header allows gzip. However if I set the content-type header to something like application/wasm then the response stays as gzip and is not decompressed. How can I keep a content type of application/octet-stream while also not having my responses being decompressed?
Was this page helpful?