What is the primary purpose of the ‘Vary’ HTTP header in a caching context?

Web Development Hard

Web Development — Hard

What is the primary purpose of the ‘Vary’ HTTP header in a caching context?

Key points

  • Vary prevents serving incompatible content
  • Vary influences the cache key
  • Commonly used with Accept-Encoding

Ready to go further?

Related questions