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?
- A. 304 Not Modified with no body
- B. 200 OK with the full image
- C. 302 Found pointing to the cached copy
- 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
- How many of the following statements are correct? 1. HTTP/2 multiplexes many requests as streams over one TCP connection. 2. HTTP/2…
- Alice writes an email in a web browser using a webmail service; it is delivered to Bob's mail server and Bob reads it in a desktop client…
- How many of the following statements about FTP are correct? 1. FTP sends control information out-of-band on a separate TCP connection…
- A router holds 50 packets on average (queued plus in service), and packets arrive at an average of 10,000 per second. What is the average…
- Packets of 1500 bytes arrive at a router output link of 10 Mbps as a Poisson stream of 800 packets/s; transmission times are exponential…
- A 600 kbps link is shared by 20 users who each need 100 kbps while active and are active independently 20% of the time. With packet…