Menu

Post image 1
Post image 2
Post image 3
1 / 3
0

Serve personalized content faster with Vary support - Vercel

Vercel News·Luba Kravchenko·4 days ago
#TroIbJ1T
Reading 0:00
15s threshold

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.

Read More