CS FundamentalsModerateGATE CS · Product company CS fundamentals

A browser re-requests a cached image with the header If-Modified-Since. The image has not changed on the server. What does the server send?

  1. A. 304 Not Modified with no body
  2. B. 200 OK with the full image
  3. C. 302 Found pointing to the cached copy
  4. D. 204 No Content with the new Last-Modified date

Correct answer: A. 304 Not Modified with no body

A conditional GET lets the server answer 304 with headers only, so the browser reuses its cached copy and saves bandwidth. 200 would resend the body, 302 is a temporary redirect, and 204 means the request succeeded with no content to show.

More Computer Networks questions

Exams that ask this topic