Serve personalized content faster with Vary support

1 min read

Vercel now fully supports the HTTP Vary header, making it easier to cache personalized content across all plans with no configuration required.

The Vary header tells caches which request headers to include when generating cache keys. This allows Vercel’s application delivery network to store and serve different versions of a page based on headers like X-Vercel-IP-Country or Accept-Language, so users get fast, localized content without recomputation.

Vary: X-Vercel-IP-Country
Cache-Control: s-maxage=60

By returning the above headers your site caches and serves country-specific content.

A visitor from the United States receives the US-specific cached version, and visitors from other countries receive the version for their locale, with no recomputation required.

Learn more about caching personalized content in Vercel's application network documentation.