Hey,
I am trying to have compression enabled globally, but disable it for a specific route. I am using a configuration adapted from [0] following [1] for the adaptations, see attached envoy.yaml. I would expect file.json to be retrieved without compression, but it is always compressed even though it seems to hit the correct route as seen in the x-route header:
curl -si -H "Accept-Encoding: gzip" localhost:10000/file.json
HTTP/1.1 200 OK
content-type: application/json
date: Mon, 20 Nov 2023 13:28:40 GMT
server: envoy
x-envoy-upstream-service-time: 10
x-route: uncompressed
content-encoding: gzip
vary: Accept-Encoding
transfer-encoding: chunked
I tried both with 1.28.0 as well as older versions.
Any help would be appreciated.
Thanks,
Ben
[0]
https://github.com/envoyproxy/envoy/tree/main/examples/gzip
[1]
https://www.envoyproxy.io/docs/envoy/v1.28.0/configuration/http/http_filters/compressor_filter.html#compressor