Developing Applications Using Cisco Core Platforms and APIs (DEVCOR) — Question 336

An engineer needs to improve the responsiveness of an application by implementing client-side HTTP caching. The cached data must be cacheable by everyone and must be validated during each request. Which value must the engineer set in the Cache-Control header to meet these requirements?

Answer options

Correct answer: B

Explanation

The correct answer is 'no-cache' because it allows the cached data to be stored but requires validation with the server before use. 'private' restricts caching to a single user, 'no-store' prevents any caching, and 'max-age' specifies a duration for freshness without validation.