From mboxrd@z Thu Jan 1 00:00:00 1970 From: Robert Vollmert Subject: bug#39051: nginx caching headers are broken due to epoch store timestamps Date: Thu, 9 Jan 2020 13:12:41 +0100 Message-ID: <155F39DF-2BE3-44B7-BBB6-22E89A7A4DB0@vllmrt.net> References: Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:49135) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ipWgT-0006xQ-3F for bug-guix@gnu.org; Thu, 09 Jan 2020 07:13:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ipWgR-0001ou-Iu for bug-guix@gnu.org; Thu, 09 Jan 2020 07:13:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:45926) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ipWgQ-0001no-IT for bug-guix@gnu.org; Thu, 09 Jan 2020 07:13:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ipWgQ-0007nh-Ei for bug-guix@gnu.org; Thu, 09 Jan 2020 07:13: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: =?UTF-8?Q?G=C3=A1bor?= Boskovits Cc: 39051@debbugs.gnu.org I don=E2=80=99t see anything here: = https://debbugs.gnu.org/cgi/pkgreport.cgi?package=3Dguix;include=3Dsubject= %3Anginx > On 9. Jan 2020, at 12:00, G=C3=A1bor Boskovits = wrote: >=20 > Hello, >=20 > Robert Vollmert ezt =C3=ADrta (id=C5=91pont: 2020. = jan. 9., Cs, 11:54): >>=20 >> I=E2=80=99ve 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. >>=20 >> I=E2=80=99ve fixed this on my server by applying a patch from Nix: >> = https://github.com/robx/guix/commit/4b406f5bc608b3c0e18e15795d8fe61d3477a3= e2 >=20 > this is a known issue. Could you look around the tracker and merge? >>=20 >>=20 >>=20 >>=20 >=20 > 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? >=20 > Best regards, > g_bor > --=20 > OpenPGP Key Fingerprint: = 7988:3B9F:7D6A:4DBF:3719:0367:2506:A96C:CF63:0B21