HTTP headers
If-None-Match header
Conditional GET can return 304 if a supplied tag matches; use the actual validator.
Formal Syntax & Structure
nginx syntaxnginx
If-None-Match: * | entity-tag[, entity-tag...]Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| condition | * | comma-separated entity tags | A wildcard tests representation existence; otherwise compare tags weakly. A false condition gives 304 for GET/HEAD and 412 for other methods. Do not mix wildcard with a list. |
Working Example
Example Snippetnginx
If-None-Match: "guide-v2"