You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Need to work out whether Last-Modified should refer to:
The instant the ItemCollectionLibrary last completed its fetch/index operation (it would need to be passed as part of the IdentifiedItemCollection), or
The instant the particular Result 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.
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?
The text was updated successfully, but these errors were encountered: