Tobias Geerinckx-Rice via Bug reports for GNU Guix <
address@hidden> ezt írta (időpont: 2019. aug. 28., Sze, 16:38):
Gábor, Ludo',
Gábor Boskovits 写道:
> Supressing the last modified header is just an
> add_header Last-Modified "";
> away.
You'll also need:
# Don't honour client If-Modified-Since constraints.
if_modified_since off;
# Nginx's etags are hashes of file timestamp & file length.
etag off;
You really have a point here.
Based on my reseach, I came up with the following:
we need
etag off;
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.
Wdyt?