Webgateway: sets 'last-modified' header to now() #7968
Labels
effort/hours
Estimated to take one or several hours
exp/novice
Someone with a little familiarity can pick up
help wanted
Seeking public contribution on this issue
kind/bug
A bug in existing code (including security flaws)
P2
Medium: Good to have, but can wait until someone steps up
status/ready
Ready to be worked
topic/gateway
Topic gateway
While the web gateway sets the CID as etag in the http header which allows to cache resources properly, the last-modified tag is always the current time.
This doesn't really match what the tag is supposed to reflect: The last time the ressource changed.
Since IPFS has no way of knowing when this occurred, wouldn't it be more correct to not send a last-modified tag at all?
RFC2616 doesn't require a server to have this tag in the response header:
The text was updated successfully, but these errors were encountered: