* bug#39051: nginx caching headers are broken due to epoch store timestamps
@ 2020-01-09 10:52 Robert Vollmert
2020-01-09 11:00 ` Gábor Boskovits
0 siblings, 1 reply; 4+ messages in thread
From: Robert Vollmert @ 2020-01-09 10:52 UTC (permalink / raw)
To: 39051
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#39051: nginx caching headers are broken due to epoch store timestamps
2020-01-09 10:52 bug#39051: nginx caching headers are broken due to epoch store timestamps Robert Vollmert
@ 2020-01-09 11:00 ` Gábor Boskovits
2020-01-09 12:12 ` Robert Vollmert
2020-01-11 21:24 ` Ludovic Courtès
0 siblings, 2 replies; 4+ messages in thread
From: Gábor Boskovits @ 2020-01-09 11:00 UTC (permalink / raw)
To: Robert Vollmert; +Cc: 39051
Hello,
Robert Vollmert <rob@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
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#39051: nginx caching headers are broken due to epoch store timestamps
2020-01-09 11:00 ` Gábor Boskovits
@ 2020-01-09 12:12 ` Robert Vollmert
2020-01-11 21:24 ` Ludovic Courtès
1 sibling, 0 replies; 4+ messages in thread
From: Robert Vollmert @ 2020-01-09 12:12 UTC (permalink / raw)
To: Gábor Boskovits; +Cc: 39051
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@gmail.com> wrote:
>
> Hello,
>
> Robert Vollmert <rob@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
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#39051: nginx caching headers are broken due to epoch store timestamps
2020-01-09 11:00 ` Gábor Boskovits
2020-01-09 12:12 ` Robert Vollmert
@ 2020-01-11 21:24 ` Ludovic Courtès
1 sibling, 0 replies; 4+ messages in thread
From: Ludovic Courtès @ 2020-01-11 21:24 UTC (permalink / raw)
To: Gábor Boskovits; +Cc: 39051, Robert Vollmert
Hi,
Gábor Boskovits <boskovits@gmail.com> skribis:
> Hello,
>
> Robert Vollmert <rob@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!
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2020-01-11 21:25 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-09 10:52 bug#39051: nginx caching headers are broken due to epoch store timestamps Robert Vollmert
2020-01-09 11:00 ` Gábor Boskovits
2020-01-09 12:12 ` Robert Vollmert
2020-01-11 21:24 ` Ludovic Courtès
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).