Tobias Geerinckx-Rice via Bug reports for GNU Guix <address@hidden
> ezt írta (időpont: 2019. aug. 28., Sze, 16:38):
Gábor Boskovits 写道：
> Supressing the last modified header is just an
> add_header Last-Modified "";
You'll also need:
# Don't honour client If-Modified-Since constraints.
# Nginx's etags are hashes of file timestamp & file length.
You really have a point here.
Based on my reseach, I came up with the following:
we should create a file with the git last modification time of the files, updated when there is a new commit in the repo => last-modified
we should create a file with some hash of the files, updated when there is a new commit in the repo => etag
we could restrict these operations to the files modified since the last checkout.
Retrieve these with embededd perl.