-
Notifications
You must be signed in to change notification settings - Fork 93
Min GZIP value #34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I'll do it myself!!!!!It's too slow |
I met this problem too. I made a gzip middleware for gin and net/http, with support for setting minimum body size to gzip: https://github.com/nanmu42/gzip Maybe you can have a try. |
That‘s great @nanmu42 I‘ll give it a try in the coming days! |
It's a very basic and easy function, hope it can be supported, as it may waster lots of bandwidth to gzip small response |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi everyone, thanks for this project, great work!
I was wondering if there was an option to set a minimum value for the GZIP compression to take effect. The reason for this min value would me to prevent very small response bodies to be compressed which in some cases would make the responses even bigger.
Thanks and best regards
Marc
The text was updated successfully, but these errors were encountered: