Which response header primarily controls how long a CDN edge may serve a cached object before revalidating?
Correct answer
A. Cache-Control with max-age, and s-maxage which overrides it for shared caches
16 views
A. Cache-Control with max-age, and s-maxage which overrides it for shared caches
16 views
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.
Asked in: NTS, PPSC IT, Campus Interviews
Not sure why the answer is A? Ask here and get an explanation.