在GCP Cloud Run上为响应有效载荷启用GZIP w/ESPv2



有人设法为outgoig(又名downstream(application/jsontext/plain响应(有效载荷(启用GZIP压缩吗?

我把它追溯到[https://www.envoyproxy.io/docs/envoy/latest/configuration/http/http_filters/gzip_filter#runtime][1],但没有找到使用ESPv2 docker映像启用它的方法…

更新2021年5月8日:

·设置Accept-Encoding: gzip请求标头无效,返回的响应没有gzip映射。·事实上,新的/更新的过滤器是envoy.filters.http.compressor

特别是,https://github.com/GoogleCloudPlatform/esp-v2/blob/master/src/go/util/marshal.go也没有提到compressor(传统gzip(http过滤器…

有什么想法吗?

目前(截至2021年9月16日(根本不支持ESP v2上的gzip压缩,请参阅:https://github.com/GoogleCloudPlatform/esp-v2/issues/607

最新更新