{
    "url": "https://delaparra-services.nl/knowledge-hub/vary",
    "locale": "en",
    "title": "Vary: Knowledge hub | DeLaParra Services",
    "description": "Tells caches which request headers affect the response. Without it, a cache might serve the wrong variant.",
    "alternates": {
        "en": "https://delaparra-services.nl/knowledge-hub/vary",
        "nl": "https://delaparra-services.nl/nl/kennisbank/vary"
    },
    "formats": {
        "csv": "https://delaparra-services.nl/knowledge-hub/vary.csv",
        "md": "https://delaparra-services.nl/knowledge-hub/vary.md",
        "json": "https://delaparra-services.nl/knowledge-hub/vary.json",
        "zip": "https://delaparra-services.nl/knowledge-hub/vary.zip",
        "pdf": "https://delaparra-services.nl/knowledge-hub/vary.pdf"
    },
    "downloads": [
        {
            "url": "https://delaparra-services.nl/knowledge-hub/vary.csv",
            "encodingFormat": "text/csv",
            "name": "vary.csv"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/vary.json",
            "encodingFormat": "application/json",
            "name": "vary.json"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/vary.md",
            "encodingFormat": "text/markdown",
            "name": "vary.md"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/vary.pdf",
            "encodingFormat": "application/pdf",
            "name": "vary.pdf"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/vary.zip",
            "encodingFormat": "application/zip",
            "name": "vary.zip"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/vary/skills.zip",
            "encodingFormat": "application/zip",
            "name": "vary-skills.zip"
        }
    ],
    "markdown": "1. [Home](<https://delaparra-services.nl/>) \n1. [Knowledge hub](<https://delaparra-services.nl/knowledge-hub>) \n1. [Vary](<https://delaparra-services.nl/knowledge-hub/vary>)\n\n  \n\nCategory: HTTP headers \n\n# Vary\n\n  Explained by [Reinier de la Parra](<https://delaparra-services.nl/about>)  Updated November 25, 2026    \n\n## What is Vary?\n\n \n\nVary: 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.\n\n \n\nDefinition source [Coders Lingo](<https://coderslingo.com/resources/open-dataset/>), [CC BY 4.0](<https://creativecommons.org/licenses/by/4.0/>)\n\n \n\n## Frequently asked questions about Vary\n\n  \n\n### What should you keep in mind with Vary?\n\n \n\nKeep 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.\n\n    \n\n### What does an example of Vary look like?\n\n \n\n```\nVary: Accept-Encoding, Accept-Language\n```\n\n \n\n## At a glance\n\n   CategoryHTTP headers Explained by[Reinier de la Parra](<https://delaparra-services.nl/about>) UpdatedNovember 25, 2026\n\n \n\n## More HTTP headers terms\n\n \n\n- [Set-Cookie](<https://delaparra-services.nl/knowledge-hub/set-cookie>) \n- [Strict-Transport-Security](<https://delaparra-services.nl/knowledge-hub/strict-transport-security>) \n- [User-Agent](<https://delaparra-services.nl/knowledge-hub/user-agent>) \n- [WWW-Authenticate](<https://delaparra-services.nl/knowledge-hub/www-authenticate>) \n- [X-Content-Type-Options](<https://delaparra-services.nl/knowledge-hub/x-content-type-options>) \n- [X-Frame-Options](<https://delaparra-services.nl/knowledge-hub/x-frame-options>)\n\n \n\n[All terms starting with V](<https://delaparra-services.nl/knowledge-hub#letter-v>)\n\n \n\n## Skills\n\n \n\n- ### HTTP headers review\n\n \n\nUse 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.\n\n [View skill](<https://delaparra-services.nl/skills/http-headers-review>) [Download zip](<https://delaparra-services.nl/skills/http-headers-review/download>) \n- ### Chrome DevTools Agent\n\n \n\n'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.'\n\n [View skill](<https://delaparra-services.nl/skills/chrome-devtools>) [Download zip](<https://delaparra-services.nl/skills/chrome-devtools/download>) \n- ### API Design Principles\n\n \n\nMaster 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.\n\n [View skill](<https://delaparra-services.nl/skills/api-design-principles>) [Download zip](<https://delaparra-services.nl/skills/api-design-principles/download>)\n\n [Download all skills (zip)](<https://delaparra-services.nl/knowledge-hub/vary/skills.zip>)\n\n \n\n## Manuals\n\n \n\n- [HTTP headers: security, caching and CORS](<https://delaparra-services.nl/manuals/http-headers-beveiliging-caching-en-cors>)\n\n \n\n## Related services\n\n \n\n- [Web design and development](<https://delaparra-services.nl/services#service-01>)\n\nAfter our first meeting, we'll develop a custom solution for a fast, scalable application. \n- [Custom software and web applications](<https://delaparra-services.nl/services#service-03>)\n\nPerhaps your customers need somewhere to download their invoices, or your staff are managing bookings in a spreadsheet.\n\n \n\n## Need any help?\n\n \n\nStuck 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.\n\n  [Get in touch](<https://delaparra-services.nl/availability>)\n\n[HTML version](https://delaparra-services.nl/knowledge-hub/vary)\n",
    "structured_data": {
        "@context": "https://schema.org",
        "@graph": [
            {
                "@type": "Organization",
                "@id": "https://delaparra-services.nl/#practice",
                "logo": "https://delaparra-services.nl/logo.png",
                "name": "DeLaParra Services",
                "legalName": "DeLaParra Services",
                "url": "https://delaparra-services.nl/",
                "description": "Bespoke software, web applications and mobile apps, developed in Laravel by a single developer in Groningen. Fixed price agreed in advance, full source code provided upon delivery.",
                "email": "info@delaparra-services.nl",
                "address": {
                    "@type": "PostalAddress",
                    "addressLocality": "Groningen",
                    "addressRegion": "Groningen",
                    "addressCountry": "NL"
                },
                "areaServed": "Groningen, the Netherlands",
                "knowsLanguage": [
                    "en",
                    "nl"
                ],
                "knowsAbout": [
                    "Web design and development",
                    "App development",
                    "Custom software and web applications",
                    "OpenSpec",
                    "AI code review",
                    "Your own coding agent"
                ],
                "founder": {
                    "@id": "https://delaparra-services.nl/#person"
                }
            },
            {
                "@type": "FAQPage",
                "@id": "https://delaparra-services.nl/knowledge-hub/vary#webpage",
                "url": "https://delaparra-services.nl/knowledge-hub/vary",
                "name": "Vary: Knowledge hub | DeLaParra Services",
                "description": "Tells caches which request headers affect the response. Without it, a cache might serve the wrong variant.",
                "isPartOf": {
                    "@id": "https://delaparra-services.nl/#website"
                },
                "about": {
                    "@type": "DefinedTerm",
                    "@id": "https://delaparra-services.nl/knowledge-hub/vary#term",
                    "name": "Vary",
                    "description": "Tells caches which request headers affect the response. Without it, a cache might serve the wrong variant.",
                    "termCode": "vary",
                    "url": "https://delaparra-services.nl/knowledge-hub/vary",
                    "inLanguage": "en",
                    "keywords": "HTTP headers",
                    "dateModified": "2026-11-25T17:46:31+00:00",
                    "inDefinedTermSet": {
                        "@id": "https://delaparra-services.nl/knowledge-hub#terms"
                    },
                    "isPartOf": {
                        "@id": "https://delaparra-services.nl/knowledge-hub#dataset"
                    },
                    "subjectOf": [
                        {
                            "@id": "https://delaparra-services.nl/knowledge-hub/vary#webpage"
                        },
                        {
                            "@id": "https://delaparra-services.nl/knowledge-hub/vary#dataset"
                        }
                    ]
                },
                "inLanguage": "en",
                "breadcrumb": {
                    "@id": "https://delaparra-services.nl/knowledge-hub/vary#breadcrumb"
                },
                "mainEntity": [
                    {
                        "@type": "Question",
                        "name": "What is Vary?",
                        "acceptedAnswer": {
                            "@type": "Answer",
                            "text": "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."
                        }
                    },
                    {
                        "@type": "Question",
                        "name": "What should you keep in mind with Vary?",
                        "acceptedAnswer": {
                            "@type": "Answer",
                            "text": "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."
                        }
                    },
                    {
                        "@type": "Question",
                        "name": "What does an example of Vary look like?",
                        "acceptedAnswer": {
                            "@type": "Answer",
                            "text": "Vary: Accept-Encoding, Accept-Language"
                        }
                    }
                ],
                "author": {
                    "@id": "https://delaparra-services.nl/#person"
                },
                "mentions": [
                    {
                        "@id": "https://delaparra-services.nl/skills/http-headers-review#skill"
                    },
                    {
                        "@id": "https://delaparra-services.nl/skills/chrome-devtools#skill"
                    },
                    {
                        "@id": "https://delaparra-services.nl/skills/api-design-principles#skill"
                    },
                    {
                        "@id": "https://delaparra-services.nl/manuals/http-headers-beveiliging-caching-en-cors#article"
                    }
                ]
            },
            {
                "@type": "BreadcrumbList",
                "@id": "https://delaparra-services.nl/knowledge-hub/vary#breadcrumb",
                "itemListElement": [
                    {
                        "@type": "ListItem",
                        "position": 1,
                        "name": "Home",
                        "item": "https://delaparra-services.nl/"
                    },
                    {
                        "@type": "ListItem",
                        "position": 2,
                        "name": "Knowledge hub",
                        "item": "https://delaparra-services.nl/knowledge-hub"
                    },
                    {
                        "@type": "ListItem",
                        "position": 3,
                        "name": "Vary"
                    }
                ]
            },
            {
                "@type": "Person",
                "@id": "https://delaparra-services.nl/#person",
                "name": "Reinier de la Parra",
                "url": "https://delaparra-services.nl/about"
            },
            {
                "@type": "Dataset",
                "@id": "https://delaparra-services.nl/knowledge-hub/vary#dataset",
                "name": "Vary",
                "description": "Tells caches which request headers affect the response. Without it, a cache might serve the wrong variant.",
                "url": "https://delaparra-services.nl/knowledge-hub/vary",
                "identifier": "https://delaparra-services.nl/knowledge-hub/vary#dataset",
                "about": {
                    "@id": "https://delaparra-services.nl/knowledge-hub/vary#term"
                },
                "creator": {
                    "@id": "https://delaparra-services.nl/#practice"
                },
                "publisher": {
                    "@id": "https://delaparra-services.nl/#practice"
                },
                "license": "https://creativecommons.org/licenses/by/4.0/",
                "creditText": "Coders Lingo (https://coderslingo.com/resources/open-dataset/), CC BY 4.0",
                "isAccessibleForFree": true,
                "inLanguage": "en",
                "keywords": "HTTP headers",
                "version": "2026-11-25",
                "dateModified": "2026-11-25T17:46:31+00:00",
                "isPartOf": {
                    "@type": "Dataset",
                    "@id": "https://delaparra-services.nl/knowledge-hub#dataset",
                    "name": "IT terms from A to Z",
                    "url": "https://delaparra-services.nl/knowledge-hub"
                },
                "includedInDataCatalog": {
                    "@type": "DataCatalog",
                    "@id": "https://delaparra-services.nl/knowledge-hub#catalog",
                    "name": "Knowledge hub data catalog",
                    "url": "https://delaparra-services.nl/knowledge-hub"
                },
                "distribution": [
                    {
                        "@type": "DataDownload",
                        "name": "vary.csv",
                        "encodingFormat": "text/csv",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/vary.csv",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:31+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "vary.json",
                        "encodingFormat": "application/json",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/vary.json",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:31+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "vary.md",
                        "encodingFormat": "text/markdown",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/vary.md",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:31+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "vary.pdf",
                        "encodingFormat": "application/pdf",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/vary.pdf",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:31+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "vary.zip",
                        "encodingFormat": "application/zip",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/vary.zip",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:31+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "vary-skills.zip",
                        "encodingFormat": "application/zip",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/vary/skills.zip",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:31+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    }
                ]
            }
        ]
    }
}