All Questions
Caching medium

Your API response includes `Vary: User-Agent`. What is the likely negative capability impact on intermediate caches (CDNs)?

  1. A It significantly enhances data security by effectively encrypting the response content based on the user's specific browser version.
  2. B It fragments the cache significantly; widely varying User-Agent strings mean many users get redundant cache entries, reducing the hit ratio.
  3. C It forces the intermediate CDN nodes to perform on-the-fly GZIP or Brotli compression for every individual request to minimize bandwidth.
  4. D It has no measurable performance impact, as modern CDNs are designed to ignore the Vary header in favor of their own internal hashing logic.

One system design question a day, with spaced repetition so the ones you miss come back.

Get the app

Related questions