HTTP Caching interview questions

18 real HTTP Caching questions from the Caching bank, as asked in Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd — free to start.

1. What is Cache-Control?

Junior
  1. A.the HTTP header that directs how, where, and for how long a response may be stored by clients and intermediaries
  2. B.a response header giving the timestamp a resource last changed, used for validation against a stored copy
  3. C.a directive that overrides max-age specifically for shared intermediaries like CDNs while leaving browser lifetime unchanged
  4. D.the directive specifying, in seconds, how long a response is considered fresh before it must be revalidated
Reveal the answer + AI explanation — free account

3. Which statement is correct?

Junior
  1. A.Cache-Control — an opaque identifier a server assigns to a resource version so clients can ask whether their copy is still current
  2. B.Cache-Control — a directive that overrides max-age specifically for shared intermediaries like CDNs while leaving browser lifetime unchanged
  3. C.Cache-Control — the directive specifying, in seconds, how long a response is considered fresh before it must be revalidated
  4. D.Cache-Control — the HTTP header that directs how, where, and for how long a response may be stored by clients and intermediaries
Reveal the answer + AI explanation — free account

4. What is ETag?

Mid
  1. A.the directive specifying, in seconds, how long a response is considered fresh before it must be revalidated
  2. B.the HTTP header that directs how, where, and for how long a response may be stored by clients and intermediaries
  3. C.an opaque identifier a server assigns to a resource version so clients can ask whether their copy is still current
  4. D.a directive that overrides max-age specifically for shared intermediaries like CDNs while leaving browser lifetime unchanged
Reveal the answer + AI explanation — free account

6. Which statement is correct?

Mid
  1. A.ETag — a directive that overrides max-age specifically for shared intermediaries like CDNs while leaving browser lifetime unchanged
  2. B.ETag — a response header giving the timestamp a resource last changed, used for validation against a stored copy
  3. C.ETag — the HTTP header that directs how, where, and for how long a response may be stored by clients and intermediaries
  4. D.ETag — an opaque identifier a server assigns to a resource version so clients can ask whether their copy is still current
Reveal the answer + AI explanation — free account

7. What is Last-Modified?

Mid
  1. A.a directive that overrides max-age specifically for shared intermediaries like CDNs while leaving browser lifetime unchanged
  2. B.a fetch that includes a validator so the server returns 304 Not Modified when the client's copy is still fresh
  3. C.a response header giving the timestamp a resource last changed, used for validation against a stored copy
  4. D.the directive specifying, in seconds, how long a response is considered fresh before it must be revalidated
Reveal the answer + AI explanation — free account

9. Which statement is correct?

Mid
  1. A.Last-Modified — an opaque identifier a server assigns to a resource version so clients can ask whether their copy is still current
  2. B.Last-Modified — a fetch that includes a validator so the server returns 304 Not Modified when the client's copy is still fresh
  3. C.Last-Modified — a directive that overrides max-age specifically for shared intermediaries like CDNs while leaving browser lifetime unchanged
  4. D.Last-Modified — a response header giving the timestamp a resource last changed, used for validation against a stored copy
Reveal the answer + AI explanation — free account

10. What is Conditional request?

Mid
  1. A.a directive that overrides max-age specifically for shared intermediaries like CDNs while leaving browser lifetime unchanged
  2. B.a fetch that includes a validator so the server returns 304 Not Modified when the client's copy is still fresh
  3. C.a response header giving the timestamp a resource last changed, used for validation against a stored copy
  4. D.the HTTP header that directs how, where, and for how long a response may be stored by clients and intermediaries
Reveal the answer + AI explanation — free account

12. Which statement is correct?

Mid
  1. A.Conditional request — a fetch that includes a validator so the server returns 304 Not Modified when the client's copy is still fresh
  2. B.Conditional request — an opaque identifier a server assigns to a resource version so clients can ask whether their copy is still current
  3. C.Conditional request — the HTTP header that directs how, where, and for how long a response may be stored by clients and intermediaries
  4. D.Conditional request — a response header giving the timestamp a resource last changed, used for validation against a stored copy
Reveal the answer + AI explanation — free account

13. What is s-maxage?

Senior
  1. A.a directive that overrides max-age specifically for shared intermediaries like CDNs while leaving browser lifetime unchanged
  2. B.the HTTP header that directs how, where, and for how long a response may be stored by clients and intermediaries
  3. C.a response header giving the timestamp a resource last changed, used for validation against a stored copy
  4. D.the directive specifying, in seconds, how long a response is considered fresh before it must be revalidated
Reveal the answer + AI explanation — free account

15. Which statement is correct?

Senior
  1. A.s-maxage — a directive that overrides max-age specifically for shared intermediaries like CDNs while leaving browser lifetime unchanged
  2. B.s-maxage — the HTTP header that directs how, where, and for how long a response may be stored by clients and intermediaries
  3. C.s-maxage — a response header giving the timestamp a resource last changed, used for validation against a stored copy
  4. D.s-maxage — an opaque identifier a server assigns to a resource version so clients can ask whether their copy is still current
Reveal the answer + AI explanation — free account

16. What is max-age?

Mid
  1. A.an opaque identifier a server assigns to a resource version so clients can ask whether their copy is still current
  2. B.a fetch that includes a validator so the server returns 304 Not Modified when the client's copy is still fresh
  3. C.the directive specifying, in seconds, how long a response is considered fresh before it must be revalidated
  4. D.the HTTP header that directs how, where, and for how long a response may be stored by clients and intermediaries
Reveal the answer + AI explanation — free account

18. Which statement is correct?

Mid
  1. A.max-age — a response header giving the timestamp a resource last changed, used for validation against a stored copy
  2. B.max-age — a directive that overrides max-age specifically for shared intermediaries like CDNs while leaving browser lifetime unchanged
  3. C.max-age — an opaque identifier a server assigns to a resource version so clients can ask whether their copy is still current
  4. D.max-age — the directive specifying, in seconds, how long a response is considered fresh before it must be revalidated
Reveal the answer + AI explanation — free account

Free to start

Answers, AI explanations, and a scored voice mock interview

Sign up free to check your answers with explanations, ask the AI tutor anything on any question, and take one full AI mock interview — scored like a real panel.

Practice HTTP Caching free