1. Home
  2. Computer Science MCQs
  3. Cloud Computing
  4. Which response header primarily controls how long a CDN…

Added 30 Nov -0001

Which response header primarily controls how long a CDN edge may serve a cached object before revalidating?

  1. Cache-Control with max-age, and s-maxage which overrides it for shared caches Correct answer
  2. Content-Length, which sets the freshness window in seconds for the response
  3. ETag, which fixes the cache lifetime and forces revalidation on every single request
  4. Vary, which sets a separate cache lifetime per client and per user agent string

Correct answer

A. Cache-Control with max-age, and s-maxage which overrides it for shared caches

16 views

MCQSEXAM

Explanation

HTTP caching uses Cache-Control directives: max-age gives a freshness lifetime, and s-maxage overrides it specifically for shared caches such as CDNs, while private forbids shared caching. ETag and Last-Modified support revalidation, allowing a 304 response instead of a full body when the object is unchanged. Content-Length and Vary do not define freshness.

Reference

Asked in: NTS, PPSC IT, Campus Interviews

Preparing for an exam?

Doubts & discussion

Not sure why the answer is A? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Cloud Computing MCQs

Practise all Cloud Computing MCQs

Similar MCQs