About the configuration of nginx configuration file gzip: Not quite understand what the role of this gzip_proxied, should be how to properly configure it?
The official notes 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 the configuration of nginx configuration file gzip: Not quite understand what the role of this gzip_proxied, should be how to properly configure it?
The official notes 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 Lord said so, should be right gzip_comp_level
, gzip_types
and gzip_vary
so the configuration has been understood.
Let's talk about this.gzip_proxied
Nginx is enabled as a reverse proxy, depending on some requests and responses to enable gzip compression for the answer to the proxy request, whether compression depends on the "Via" field in the request header, the instructions can specify multiple different parameters at the same time, meaning the following:
Expired-Enable compression if header header contains "Expires" headers
No-cache-Enable Compression if header header contains "Cache-control:no-cache" headers
No-store-Enable Compression if header header contains "Cache-control:no-store" headers
Private-Enables compression if header header contains "Cache-control:private" headers
No_last_modified-Enable compression if header does not contain "last-modified" headers
No_etag-Enable compression if header does not contain "etag" headers
Auth-Enable Compression if header header contains "Authorization" headers
Any-enable compression unconditionally