How should an HTTP servlet respond to a request with an If-Modified-Since header older than the content's last modification date?

  • Return a 200 OK response with the updated content
  • Return a 304 Not Modified response
  • Return a 403 Forbidden response
  • Return a 500 Internal Server Error response
If the If-Modified-Since header indicates that the content hasn't been modified since the provided date, the servlet should return a 304 Not Modified response to indicate that the client's cached copy is still valid.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *