Danny Milosavljevic <
address@hidden> ezt írta (időpont: 2019. aug. 28., Sze, 17:05):
Hi Gabor,
On Wed, 28 Aug 2019 12:40:37 +0200
Gábor Boskovits <address@hidden> wrote:
> Supressing the last modified header is just an
> add_header Last-Modified "";
> away.
>
> To get the info from the symlink seems to be much trickier, i would do with
> either embedded perl or embedded lua. I am not sure if we should bother
> with it, though. Wdyt?
Since we already emit ETag, I don't think we need to bother with Last-Modified.
Why is the ETag so short, though?
The ETag we emit is also bad. Nginx calculates this from mtime and content-lenght,
so in our case it's just content length.
>wget --debug -O /dev/null https://guix.gnu.org/packages.json 2>&1 | grep -i etag
>ETag: "1-2f38b1"