In a REST application, some endpoints may sometimes produce very small outputs (like just {}). These should not be compressed as it will add time and size. It would be nice if there was a configuration to set the minimum threshold, say 128 bytes, before compression will be attempted. NGINX has this option as gzip_min_length and it defaults to 20.
In a REST application, some endpoints may sometimes produce very small outputs (like just
{}
). These should not be compressed as it will add time and size. It would be nice if there was a configuration to set the minimum threshold, say 128 bytes, before compression will be attempted. NGINX has this option asgzip_min_length
and it defaults to 20.