February 2018
Beginner to intermediate
348 pages
9h 40m
English
This module adds a simple functionality to the Gzip filter mechanism. When its gzip_static directive (on, off, or always) is enabled, Nginx will automatically look for a .gz file corresponding to the requested document before serving it. This allows Nginx to send pre-compressed documents instead of compressing documents on-the-fly at each request. Specifying always will force Nginx to serve the gzip version regardless of whether the client accepts gzip encoding.
If a client requests /documents/page.html, Nginx checks for the existence of a /documents/page.html.gz file. If the .gz file is found, it is served to the client. Note that Nginx does not generate .gz files itself, ...
Read now
Unlock full access