node-solid-server icon indicating copy to clipboard operation
node-solid-server copied to clipboard

Server should include the Last-Modified header

Open csarven opened this issue 1 year ago • 4 comments

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.

csarven avatar Sep 10 '24 11:09 csarven

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

dokieli-last-modified.webm

See also https://github.com/solid/specification/pull/678#issuecomment-2340391802

csarven avatar Sep 10 '24 11:09 csarven

i would like to work in this issue,could you please assign it to me

knishkagithub avatar Oct 07 '24 13:10 knishkagithub

@knishkagithub , not sure if you got a notification about @bourgeoa assigning this issue to you but all yours now. Thanks!

csarven avatar Oct 12 '24 17:10 csarven

@knishkagithub just wondering how you're getting on with this, as it's been 6 months. Need any help?

melvincarvalho avatar Apr 08 '25 19:04 melvincarvalho