|
In the agreement, Last-modified is indeed SHOULD level
HTTP/1.1 servers SHOULD send Last-Modified whenever feasible.
Date should be obtained forever, because according to the agreement
Origin servers MUST include a Date header field in all responses, unless
1 When the status code 100 (continue) or 101 (switch protocol) is returned, MAY include a Date header field
2 When the server processes the request response, an error occurs, such as when the status code 500 (internal error) or 503 (service unavailable) is returned
3 The server does not have a reliable clock (???)
However, this and Last-modified required by the original poster belong to two concepts.
Date is actually when the response was output, and Last-modified has more meaning. For static files, it refers to the last update time of the files saved by the system |
|