February 2018
Beginner to intermediate
348 pages
9h 40m
English
This module allows you to compress the response body with the Gzip algorithm before sending it to the client. To enable Gzip compression, use the gzip directive (on or off) at the http, server, location, and even the if level (though that is not recommended). The following directives will help you to further configure the filter options:
|
Directive |
Description |
|
gzip_buffers Context: http, server, location |
Defines the amount and size of buffers to be used for storing the compressed response. Syntax: gzip_buffers amount size; Default: gzip_buffers 4 4k (or 8k, depending on the OS) |
|
gzip_comp_level Context: http, server, location |
Defines the compression level of the algorithm. The specified value ranges from 1 (low ... |