HTTP gzip directives
gzip_vary directive
HTTP/server/location; default off. Enables Accept-Encoding variation signaling for applicable compression filters.
Formal Syntax & Structure
nginx syntaxnginx
gzip_vary on | off;Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| state | on | off | Control the Accept-Encoding Vary field when a compression filter is active. |
Working Example
Example Snippetnginx
gzip_vary on;