Server should include the Last-Modified header
Server MUST generate a Last-Modified header field in response to GET and HEAD requests.
https://solidproject.org/ED/protocol#server-last-modified-includes
Servers are strongly discouraged from exposing information beyond the minimum amount necessary to enable a feature.
https://solidproject.org/ED/protocol#exposing-information
So, the implementation should only expose the Last-Modified header when access is granted to the request target, i.e., when user or public has Read access to the resource. This is typically aligned with the 200 response.
The modified timestamp can be easily retrieved using fs.stat and mtime.
Here is a screencast showing an application making use of the header field in one particular way:
https://dokie.li/media/video/dokieli-last-modified.webm
See also https://github.com/solid/specification/pull/678#issuecomment-2340391802
i would like to work in this issue,could you please assign it to me
@knishkagithub , not sure if you got a notification about @bourgeoa assigning this issue to you but all yours now. Thanks!
@knishkagithub just wondering how you're getting on with this, as it's been 6 months. Need any help?