From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?G=C3=A1bor?= Boskovits Subject: bug#39051: nginx caching headers are broken due to epoch store timestamps Date: Thu, 9 Jan 2020 12:00:16 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:46454) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ipVYp-0006mW-IZ for bug-guix@gnu.org; Thu, 09 Jan 2020 06:01:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ipVYm-0008Om-SU for bug-guix@gnu.org; Thu, 09 Jan 2020 06:01:07 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:45891) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ipVYk-0008N5-GR for bug-guix@gnu.org; Thu, 09 Jan 2020 06:01:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ipVYk-00061G-Fe for bug-guix@gnu.org; Thu, 09 Jan 2020 06:01:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane-mx.org@gnu.org Sender: "bug-Guix" To: Robert Vollmert Cc: 39051@debbugs.gnu.org Hello, Robert Vollmert ezt =C3=ADrta (id=C5=91pont: 2020. jan. 9.= , Cs, 11:54): > > I=E2=80=99ve been having hard-to-debug caching issues serving up static f= iles > 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=E2=80=99ve fixed this on my server by applying a patch from Nix: > https://github.com/robx/guix/commit/4b406f5bc608b3c0e18e15795d8fe61d3477a= 3e2 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 s= ense? Best regards, g_bor --=20 OpenPGP Key Fingerprint: 7988:3B9F:7D6A:4DBF:3719:0367:2506:A96C:CF63:0B21