CS FundamentalsVery hardProduct-company web interview

What is the difference between the HTTP headers Cache-Control: no-cache and Cache-Control: no-store?

  1. A. They mean the same thing
  2. B. no-cache forbids storing; no-store allows storing but requires revalidation
  3. C. no-cache is for requests only and no-store for responses only
  4. D. no-cache allows storing the response but requires revalidation with the server before each reuse; no-store forbids storing it at all

Correct answer: D. no-cache allows storing the response but requires revalidation with the server before each reuse; no-store forbids storing it at all

Despite its name, no-cache means 'check with the origin before reusing' (e.g. via ETag). no-store is the directive for sensitive data that must never be written to a cache.

More Software Engineering, Git and Cloud Basics questions

Exams that ask this topic