Closed timgreen closed 13 years ago
That does not fit the git data model. Blobs don't depend on commits, and walking an open-ended commit graph to find the oldest commit referencing a blob would be fragile and slow.
HTTP provides etags, they are a much better solution to cache these files. The real path (after symlink resolution) of a blob contains a hash of the blob contents and can be used as a cache key.
Cool, you are right. thanks g2p. Please close this
For now, the last modified time has been set to the time user mount git-fs. I'd like to see file's last-modified time based on its last commit. Which will be more useful (then my webserver can return correct last-modified header).
Thank you.
FYI Here is a script from rsync can modify the time locally git://git.samba.org/rsync.git