1. [Home](<https://delaparra-services.nl/>) 
1. [Knowledge hub](<https://delaparra-services.nl/knowledge-hub>) 
1. [Vary](<https://delaparra-services.nl/knowledge-hub/vary>)

  

Category: HTTP headers 

# Vary

  Explained by [Reinier de la Parra](<https://delaparra-services.nl/about>)  Updated November 25, 2026    

## What is Vary?

 

Vary: Tells caches which request headers affect the response. Without it, a cache might serve the wrong variant. The ` Vary ` response header tells caches which request headers affect the response. ` Vary: Accept-Encoding ` means the compressed and uncompressed versions must be cached separately. ` Vary: Accept-Language ` does the same per language. Without it, a shared cache or CDN might serve a gzip-compressed response to a client that cannot handle it, or a Dutch page to an English visitor.

 

Definition source [Coders Lingo](<https://coderslingo.com/resources/open-dataset/>), [CC BY 4.0](<https://creativecommons.org/licenses/by/4.0/>)

 

## Frequently asked questions about Vary

  

### What should you keep in mind with Vary?

 

Keep the list short. ` Vary: Cookie ` or ` Vary: User-Agent ` create so many variants that caching becomes almost useless. It is often better to use separate URLs for different versions, such as ` /nl/ ` for Dutch pages, which caches cleanly and is better for SEO too. Web servers usually add ` Vary: Accept-Encoding ` automatically when they compress responses.

    

### What does an example of Vary look like?

 

```
Vary: Accept-Encoding, Accept-Language
```

 

## At a glance

   CategoryHTTP headers Explained by[Reinier de la Parra](<https://delaparra-services.nl/about>) UpdatedNovember 25, 2026

 

## More HTTP headers terms

 

- [Set-Cookie](<https://delaparra-services.nl/knowledge-hub/set-cookie>) 
- [Strict-Transport-Security](<https://delaparra-services.nl/knowledge-hub/strict-transport-security>) 
- [User-Agent](<https://delaparra-services.nl/knowledge-hub/user-agent>) 
- [WWW-Authenticate](<https://delaparra-services.nl/knowledge-hub/www-authenticate>) 
- [X-Content-Type-Options](<https://delaparra-services.nl/knowledge-hub/x-content-type-options>) 
- [X-Frame-Options](<https://delaparra-services.nl/knowledge-hub/x-frame-options>)

 

[All terms starting with V](<https://delaparra-services.nl/knowledge-hub#letter-v>)

 

## Skills

 

- ### HTTP headers review

 

Use when reviewing or setting HTTP response headers for a web app or API - security headers (Content-Security-Policy, Strict-Transport-Security, X-Frame-Options, X-Content-Type-Options, Referrer-Policy, Permissions-Policy), CORS headers, caching headers (Cache-Control, ETag, Last-Modified, Vary) and cookies (Set-Cookie flags). Also use when a security scan reports missing headers.

 [View skill](<https://delaparra-services.nl/skills/http-headers-review>) [Download zip](<https://delaparra-services.nl/skills/http-headers-review/download>) 
- ### Chrome DevTools Agent

 

'Expert-level browser automation, debugging, and performance analysis using Chrome DevTools MCP. Use for interacting with web pages, capturing screenshots, analyzing network traffic, and profiling performance.'

 [View skill](<https://delaparra-services.nl/skills/chrome-devtools>) [Download zip](<https://delaparra-services.nl/skills/chrome-devtools/download>) 
- ### API Design Principles

 

Master REST and GraphQL API design principles to build intuitive, scalable, and maintainable APIs that delight developers. Use when designing new APIs, reviewing API specifications, or establishing API design standards.

 [View skill](<https://delaparra-services.nl/skills/api-design-principles>) [Download zip](<https://delaparra-services.nl/skills/api-design-principles/download>)

 [Download all skills (zip)](<https://delaparra-services.nl/knowledge-hub/vary/skills.zip>)

 

## Manuals

 

- [HTTP headers: security, caching and CORS](<https://delaparra-services.nl/manuals/http-headers-beveiliging-caching-en-cors>)

 

## Related services

 

- [Web design and development](<https://delaparra-services.nl/services#service-01>)

After our first meeting, we'll develop a custom solution for a fast, scalable application. 
- [Custom software and web applications](<https://delaparra-services.nl/services#service-03>)

Perhaps your customers need somewhere to download their invoices, or your staff are managing bookings in a spreadsheet.

 

## Need any help?

 

Stuck on one of these in your own project? Tell me what you are working on and I will tell you how I would approach it.

  [Get in touch](<https://delaparra-services.nl/availability>)

[HTML version](https://delaparra-services.nl/knowledge-hub/vary)
