HTTP headers

Vary header

Indicates request fields affecting representation selection; not a security boundary.

Formal Syntax & Structure

nginx syntaxnginx
Vary: field-name[, field-name...] | *

Parameters & Attributes

NameTypeDescription
selection* | comma-separated request field namesDescribe fields used in representation selection. A wildcard prevents normal matching of a stored response for subsequent requests. Not an authorization boundary.

Working Example

Example Snippetnginx
Vary: Accept-Language
Nginx Reference