vary_match
Determine whether a stored HTTP response can be reused for an incoming request by comparing Vary header fields per RFC 9111 and returning match or miss plus differing fields.
Instructions
Decide whether a stored response can be reused for an incoming request, per RFC 9111 section 4.1. Compares the fields named by the stored Vary value under that field's normalisation policy and returns match hit|miss, the fields that differ, the normalised Vary members, and the rule IDs with their clause references.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cached | Yes | ||
| incoming | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| match | Yes | ||
| reasons | Yes | ||
| normalized_vary | Yes | lowercase header names, ASCII-sorted | |
| differing_headers | Yes | lowercase header names, ASCII-sorted |