HTTP gzip directives

gzip_min_length directive

HTTP/server/location; default 20. Checks known Content-Length, not arbitrary streaming body size.

Formal Syntax & Structure

nginx syntaxnginx
gzip_min_length length;

Parameters & Attributes

NameTypeDescription
lengthbyte sizeMinimum size based on the Content-Length header, not a measured streaming total.

Working Example

Example Snippetnginx
gzip_min_length 256;
Nginx Reference