About Gzip configuration of Nginx configuration file: I don't quite understand what the role of gzip_proxied is. How should I configure it correctly? Official Instructions: Syntax: gzip_proxiedoff | expired | no-cache | no-store | private | no_last_modified | no... about Gzip configuration of Nginx configuration file: I don't quite understand what the role of gzip_proxied is. How should I configure it correctly?
Official Instructions are as follows:
Syntax: gzip_proxied off | expired | no-cache | no-store | private | no_last_modified | no_etag | auth | any ...;
Default: gzip_proxied off;
Context: http, server, location
Reply content:
About Gzip configuration of Nginx configuration file: I don't quite understand what the role of gzip_proxied is. How should I configure it correctly?
Official Instructions are as follows:
Syntax: gzip_proxied off | expired | no-cache | no-store | private | no_last_modified | no_etag | auth | any ...;
Default: gzip_proxied off;
Context: http, server, location
The subject should begzip_comp_level
,gzip_types
,gzip_vary
And other configurations.
Let's talk about this.gzip_proxied
Nginx is enabled when it is used as a reverse proxy. Based on some requests and responses, it determines whether gzip compression is enabled for the response to the proxy request. Compression depends on the "Via" field in the request header, multiple different parameters can be specified in the command. The meaning is as follows:
Expired-enable compression. If the header contains "Expires" header information
No-cache-enable compression. If the header contains "Cache-Control: no-cache" header information
No-store-enable compression. If the header contains "Cache-Control: no-store" header information
Private-enable compression. If the header contains "Cache-Control: private" header information
No_last_modified-enable compression. If the header does not contain "Last-Modified" header information
No_etag-enable compression. If the header does not contain the "ETag" header information
Auth-enable compression. If the header contains "Authorization" header information
Any-enable compression unconditionally