GNU bug report logs - #39051
nginx serving files from the store returns Last-Modified = Epoch

Previous Next

Package: guix;

Reported by: Robert Vollmert <rob <at> vllmrt.net>

Date: Thu, 9 Jan 2020 10:54:02 UTC

Severity: normal

Merged with 37207

To reply to this bug, email your comments to 39051 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#39051; Package guix. (Thu, 09 Jan 2020 10:54:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Robert Vollmert <rob <at> vllmrt.net>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Thu, 09 Jan 2020 10:54:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Robert Vollmert <rob <at> vllmrt.net>
To: bug-guix <at> gnu.org
Subject: nginx caching headers are broken due to epoch store timestamps
Date: Thu, 9 Jan 2020 11:52:47 +0100
I’ve been having hard-to-debug caching issues serving up static files
with nginx. It turns out this is due to nginx computing e-tag headers
from file timestamps, which are all epoch in the guix store.

I’ve fixed this on my server by applying a patch from Nix:
https://github.com/robx/guix/commit/4b406f5bc608b3c0e18e15795d8fe61d3477a3e2





Information forwarded to bug-guix <at> gnu.org:
bug#39051; Package guix. (Thu, 09 Jan 2020 11:01:02 GMT) Full text and rfc822 format available.

Message #8 received at 39051 <at> debbugs.gnu.org (full text, mbox):

From: Gábor Boskovits <boskovits <at> gmail.com>
To: Robert Vollmert <rob <at> vllmrt.net>
Cc: 39051 <at> debbugs.gnu.org
Subject: Re: bug#39051: nginx caching headers are broken due to epoch store
 timestamps
Date: Thu, 9 Jan 2020 12:00:16 +0100
Hello,

Robert Vollmert <rob <at> vllmrt.net> ezt írta (időpont: 2020. jan. 9., Cs, 11:54):
>
> I’ve been having hard-to-debug caching issues serving up static files
> with nginx. It turns out this is due to nginx computing e-tag headers
> from file timestamps, which are all epoch in the guix store.
>
> I’ve fixed this on my server by applying a patch from Nix:
> https://github.com/robx/guix/commit/4b406f5bc608b3c0e18e15795d8fe61d3477a3e2

this is a known issue. Could you look around the tracker and merge?
>
>
>
>

Also, on the long run it would be nice to contribute a working etags
computation to nginx, that
is based on the file content hash, or something like that. Does that make sense?

Best regards,
g_bor
-- 
OpenPGP Key Fingerprint: 7988:3B9F:7D6A:4DBF:3719:0367:2506:A96C:CF63:0B21




Information forwarded to bug-guix <at> gnu.org:
bug#39051; Package guix. (Thu, 09 Jan 2020 12:13:02 GMT) Full text and rfc822 format available.

Message #11 received at 39051 <at> debbugs.gnu.org (full text, mbox):

From: Robert Vollmert <rob <at> vllmrt.net>
To: Gábor Boskovits <boskovits <at> gmail.com>
Cc: 39051 <at> debbugs.gnu.org
Subject: Re: bug#39051: nginx caching headers are broken due to epoch store
 timestamps
Date: Thu, 9 Jan 2020 13:12:41 +0100
I don’t see anything here: https://debbugs.gnu.org/cgi/pkgreport.cgi?package=guix;include=subject%3Anginx

> On 9. Jan 2020, at 12:00, Gábor Boskovits <boskovits <at> gmail.com> wrote:
> 
> Hello,
> 
> Robert Vollmert <rob <at> vllmrt.net> ezt írta (időpont: 2020. jan. 9., Cs, 11:54):
>> 
>> I’ve been having hard-to-debug caching issues serving up static files
>> with nginx. It turns out this is due to nginx computing e-tag headers
>> from file timestamps, which are all epoch in the guix store.
>> 
>> I’ve fixed this on my server by applying a patch from Nix:
>> https://github.com/robx/guix/commit/4b406f5bc608b3c0e18e15795d8fe61d3477a3e2
> 
> this is a known issue. Could you look around the tracker and merge?
>> 
>> 
>> 
>> 
> 
> Also, on the long run it would be nice to contribute a working etags
> computation to nginx, that
> is based on the file content hash, or something like that. Does that make sense?
> 
> Best regards,
> g_bor
> -- 
> OpenPGP Key Fingerprint: 7988:3B9F:7D6A:4DBF:3719:0367:2506:A96C:CF63:0B21





Merged 37207 39051. Request was from Ludovic Courtès <ludo <at> gnu.org> to control <at> debbugs.gnu.org. (Sat, 11 Jan 2020 21:24:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-guix <at> gnu.org:
bug#39051; Package guix. (Sat, 11 Jan 2020 21:25:02 GMT) Full text and rfc822 format available.

Message #16 received at 39051 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Gábor Boskovits <boskovits <at> gmail.com>
Cc: 39051 <at> debbugs.gnu.org, Robert Vollmert <rob <at> vllmrt.net>
Subject: Re: bug#39051: nginx caching headers are broken due to epoch store
 timestamps
Date: Sat, 11 Jan 2020 22:24:27 +0100
Hi,

Gábor Boskovits <boskovits <at> gmail.com> skribis:

> Hello,
>
> Robert Vollmert <rob <at> vllmrt.net> ezt írta (időpont: 2020. jan. 9., Cs, 11:54):
>>
>> I’ve been having hard-to-debug caching issues serving up static files
>> with nginx. It turns out this is due to nginx computing e-tag headers
>> from file timestamps, which are all epoch in the guix store.
>>
>> I’ve fixed this on my server by applying a patch from Nix:
>> https://github.com/robx/guix/commit/4b406f5bc608b3c0e18e15795d8fe61d3477a3e2
>
> this is a known issue. Could you look around the tracker and merge?

Done.  Previous discussion:

  https://issues.guix.gnu.org/issue/37207

Thanks,
Ludo’, also eager to see a proper fix!




Changed bug title to 'nginx serving files from the store returns Last-Modified = Epoch' from 'nginx caching headers are broken due to epoch store timestamps' Request was from Ludovic Courtès <ludo <at> gnu.org> to control <at> debbugs.gnu.org. (Sat, 11 Jan 2020 21:27:01 GMT) Full text and rfc822 format available.

This bug report was last modified 5 years and 152 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.