301b Exam QuestionsBrowse all questions from this exam

301b Exam - Question 81


A web application sends information about message integrity and content life time to the client.

Which two HTTP headers should be used in sending the client information? (Choose two.)

Show Answer
Correct Answer: CD

To send information about message integrity and content lifetime to the client, two relevant HTTP headers are Expires and Content-MD5. The Expires header provides the date/time after which the response is considered expired, thereby informing the client about the content's lifetime. The Content-MD5 header is used for providing a message-integrity check for the body of the message, ensuring that the content has not been unintentionally modified in transit.

Discussion

1 comment
Sign in to comment
GVKDOptions: CD
Feb 11, 2024

CD - Correct The Expires HTTP header contains the date/time after which the response is considered expired. Invalid expiration dates with value 0 represent a date in the past and mean that the resource is already expired. https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Expires The Content-MD5 header is used by servers to provide a message-integrity check for the message body. Only an origin server or requesting client should insert a Content-MD5 header in the message. The value of the header is an MD5 digest[6] of the (potentially encoded) message body. The value of this header allows for an end-to-end check on the data, useful for detecting unintentional modifications to the data in transit. It is not intended to be used for security purposes. https://www.oreilly.com/library/view/http-the-definitive/1565925092/re17.html