feat: Implement Gzip compression for successful log API responses#11063
feat: Implement Gzip compression for successful log API responses#11063zhengkunwang223 merged 2 commits into1Panel-dev:dev-v2from
Conversation
|
Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
What this PR does / why we need it?
读日志的接口,或者其他读大文件的接口,可以用gzip压一下减少带宽压力。
尤其是日志这种重复率极高的内容,压缩率也可以变得很高。
Summary of your change
优化效果:
124kb->7kb
Please indicate you've done the following: