enable GZIP for response payloads w/ESPv2 on GCP Cloud Run

577 Views Asked by At

Did anyone manage to enable GZIP compression for outgoig (aka downstream) application/json, text/plain responses (payloads)?

I traced it down to [https://www.envoyproxy.io/docs/envoy/latest/configuration/http/http_filters/gzip_filter#runtime][1], but did not find a way to enable it using ESPv2 docker image…

Update 08/05/2021:

· Setting Accept-Encoding: gzip request header has no effect, returned response is not gzipped. · And indeed, the new/updated filter is envoy.filters.http.compressor

In particular, https://github.com/GoogleCloudPlatform/esp-v2/blob/master/src/go/util/marshal.go does not mention compressor (legacy gzip) http filter either…

Any ideas?

1

There are 1 best solutions below

1
On

Currently (as of 16th September 2021) gzip compression on ESP v2 is not supported at all, see: https://github.com/GoogleCloudPlatform/esp-v2/issues/607