PREP WITH PROOF
Menu
FREE HTTP DIAGNOSTIC TOOL · NO SIGNUP

HTTP Vary comparator

See which request fields differ between the original request that populated a cache entry and a new request for the same resource.

Compare request headers

Use one Name: value line per field, without a request line. Omit a field for absent; enter Name: for present but empty. Paste only non-sensitive fields. Cookie and authentication headers are rejected. This tool compares in the page and sends no requests for your inputs.

Comparison result

Named fields differ in this comparison

Only fields named by the stored response are compared.
FieldOriginal requestNew requestExact match
accept-language"en""fr"No
accept-encoding"gzip""gzip"Yes

This checks field matching only. It does not determine freshness, revalidation, permission to reuse, or the cache key configured at your CDN.

Which Vary value should I use?

Use the Vary value from the stored response. Compare requests to the same URL and method. In the example, both requests accept gzip but their language fields differ. A field such as User-Agent is ignored unless the stored response names it.

What does an exact match mean?

Names are compared without regard to case. The tool trims outer spaces and tabs from values, then compares repeated lines in order. It distinguishes absence from a present empty value. It does not combine field lines, rank language preferences or normalize field values by their individual HTTP grammar. A cache may recognize equivalent values that this tool flags as different.

What if Vary is missing or contains an asterisk?

A blank input reports no declared Vary fields, which can be a clue if the origin sends different representations. A wildcard prevents a field match even when the pasted requests are identical. Neither result tells you whether the response may be stored or whether a cache revalidated it.

Verify the actual cache behavior

Use the HTTP Vary troubleshooting guide for a reproducible HTTP lab and a paired-request checklist. For the matching rules, see RFC 9111, Section 4.1.