Today let's talk about Gzip compression and its setting in nginx.
In nginx for compression response module responds ngx_http_gzip_module, included in the standard build.
The official description of the module:
ngx_http_gzip_module Module - a filter response by compressing gzip, thereby reducing the size of data transmitted at two or more times.
Turn on GZip в Nginx, in the file /usr/local/etc/nginx/nginx.conf (the path may vary depending on your installation)
# Turning module
# The minimum length of the response, in which the module will reap, in bytes
# Enable compression for all proxied requests
# MIME-types that need to press (text/html should not be specified, it is compressed always)
# Prevents gzip compression method response for IE6
# Level gzip-compressed
Do not forget to restart the Nginx, for the entry into force of the changes of the configuration file.