Open trscavo opened 10 years ago
Need to work out whether Last-Modified
should refer to:
ItemCollectionLibrary
last completed its fetch/index operation (it would need to be passed as part of the IdentifiedItemCollection
), orResult
was rendered from the identified collection (it would need to be stored in the cached Result
.It looks to me as if RFC 7232 requires the latter, by indicating that:
The "Last-Modified" header field in a response provides a timestamp
indicating the date and time at which the origin server believes the
selected representation was last modified, as determined at the
conclusion of handling the request.
Also, in RFC 7231:
In responses to safe requests, validator
fields describe the selected representation chosen by the origin
server while handling the response.
As the representation may change from render to render of the "same" metadata, it seems we need to be conservative about this. Of course it would be nice to be able to push the Last-Modified
date backwards to the last time the underlying metadata had changed (within limits) but a lot more work would need to be done in the caching layers to achieve that.
I know the spec doesn't require a Last-Modified header but the response would be more readable (by humans) if it had one. Can one be added?