问题描述
是否有人设法为 outgoig(又名 downstream
)application/json
、text/plain
响应(有效负载)启用 GZIP 压缩?
我将其追溯到 [https://www.envoyproxy.io/docs/envoy/latest/configuration/http/http_filters/gzip_filter#runtime][1]
,但没有找到使用 ESPv2 docker 映像启用它的方法……
更新 08/05/2021:
· 设置Accept-Encoding: gzip
请求头无效,返回的响应没有被压缩。
· 事实上,新的/更新的过滤器是 envoy.filters.http.compressor
特别是,https://github.com/GoogleCloudplatform/esp-v2/blob/master/src/go/util/marshal.go
也没有提到 compressor
(旧版 gzip
)http 过滤器......
有什么想法吗?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)