From unknown Thu Jun 12 08:35:12 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#39051 <39051@debbugs.gnu.org> To: bug#39051 <39051@debbugs.gnu.org> Subject: Status: nginx serving files from the store returns Last-Modified = Epoch Reply-To: bug#39051 <39051@debbugs.gnu.org> Date: Thu, 12 Jun 2025 15:35:12 +0000 retitle 39051 nginx serving files from the store returns Last-Modified =3D = Epoch reassign 39051 guix submitter 39051 Robert Vollmert severity 39051 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 09 05:53:02 2020 Received: (at submit) by debbugs.gnu.org; 9 Jan 2020 10:53:02 +0000 Received: from localhost ([127.0.0.1]:51857 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ipVR0-0005no-Kq for submit@debbugs.gnu.org; Thu, 09 Jan 2020 05:53:02 -0500 Received: from lists.gnu.org ([209.51.188.17]:41524) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ipVQy-0005nM-M8 for submit@debbugs.gnu.org; Thu, 09 Jan 2020 05:53:01 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:43332) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ipVQx-0004Hd-DQ for bug-guix@gnu.org; Thu, 09 Jan 2020 05:53:00 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ipVQv-00041e-Oe for bug-guix@gnu.org; Thu, 09 Jan 2020 05:52:58 -0500 Received: from mout-p-102.mailbox.org ([2001:67c:2050::465:102]:51002) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ipVQv-0003fz-FD for bug-guix@gnu.org; Thu, 09 Jan 2020 05:52:57 -0500 Received: from smtp1.mailbox.org (smtp1.mailbox.org [80.241.60.240]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by mout-p-102.mailbox.org (Postfix) with ESMTPS id 47tjd04PV7zKmVD for ; Thu, 9 Jan 2020 11:52:52 +0100 (CET) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp1.mailbox.org ([80.241.60.240]) by spamfilter01.heinlein-hosting.de (spamfilter01.heinlein-hosting.de [80.241.56.115]) (amavisd-new, port 10030) with ESMTP id ORGXeI9EE2_7 for ; Thu, 9 Jan 2020 11:52:48 +0100 (CET) From: Robert Vollmert Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: nginx caching headers are broken due to epoch store timestamps Message-Id: Date: Thu, 9 Jan 2020 11:52:47 +0100 To: bug-guix@gnu.org X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2001:67c:2050::465:102 X-Spam-Score: -1.6 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.6 (--) 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. I=E2=80=99ve fixed this on my server by applying a patch from Nix: = https://github.com/robx/guix/commit/4b406f5bc608b3c0e18e15795d8fe61d3477a3= e2 From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 09 06:00:35 2020 Received: (at 39051) by debbugs.gnu.org; 9 Jan 2020 11:00:35 +0000 Received: from localhost ([127.0.0.1]:51864 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ipVYJ-00060R-EM for submit@debbugs.gnu.org; Thu, 09 Jan 2020 06:00:35 -0500 Received: from mail-ed1-f44.google.com ([209.85.208.44]:42283) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ipVYH-00060E-PT for 39051@debbugs.gnu.org; Thu, 09 Jan 2020 06:00:34 -0500 Received: by mail-ed1-f44.google.com with SMTP id e10so5212023edv.9 for <39051@debbugs.gnu.org>; Thu, 09 Jan 2020 03:00:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=VTjrgiu8WPZrPsbsxFZfM1FggsAe0C+amq5OAfhVNI4=; b=hLB637SoXP2vigTZa1CdZIfDdIKJyJ6ERWzlKT4GH1S1mBmrTUKM6yfXiNjcF1PGCC uz90C8Y3fwG56fNoHguzZ6rM0alUoJiI2u79eNFYSUj3sIuOeAOr/Ibkdjc8Mg/85kDU +Wqhw1XIlKqF8NB1RpcvVTTLDsf6dMVDTjDw+bo0p1BBu+cdg+5K7tGjafwsLXmBB019 TeNaHelzJtKCZ1800OWdI00cShieQnKiHARdJqiWVfk4+hgcHYXS386KylVJQ3pHe9Z2 XIGc8zCB/ldMd05XBAmMDPvbc/zWmZG16jI4qVZqrULJFDGF72Jr3oDGD4iJGG9Bc77H Euag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=VTjrgiu8WPZrPsbsxFZfM1FggsAe0C+amq5OAfhVNI4=; b=bw/Fd5VdzAUkkjWx/ip2MEUfMopEB54S7GBCHauVUff8OzLy9jpnSCmeKX3/xFyPKG rR1EmUGKknDOmanKx26I8s2PNu215HdYD666o5jWekIC/1JSmyPHkDdNP1nTfAaMZgRB pmWWjE7UWB56MStpHq350jXVIx9Q0adBAuRpFRSCcROhPoVoABcR/4Z1Ov0Z6I7YFr9G ZCCmP7N+y5kH7Fql6XHAgjfSL4DldLypl9W7OXAB9jqLNJxN0fpGfQdphJfUmgx84nVO wR/wskUkSpqrXlH2xX+fAf/ptTyQGv0vB7wb/gWlXtusU2aFAoLp4ILC4Us+T8f4QsTo GwgA== X-Gm-Message-State: APjAAAVHIqtguxaDEuRBQPKvk0J3H31/a8pMCD4blJpBg5Cbup8lxRfB WJezDN1gpcFd/wYUzNgx4Z0R7AMN0r/+6kyipw== X-Google-Smtp-Source: APXvYqzcfAgKiYdX8flaw95d7jkUAUtahqgAqTMXLjlJDxZ5S71cQnKIabPHFxKm32noCkqfmrE/c43TUY/nV9zDo+U= X-Received: by 2002:a17:906:7cf:: with SMTP id m15mr9461782ejc.82.1578567627867; Thu, 09 Jan 2020 03:00:27 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: =?UTF-8?Q?G=C3=A1bor_Boskovits?= Date: Thu, 9 Jan 2020 12:00:16 +0100 Message-ID: Subject: Re: bug#39051: nginx caching headers are broken due to epoch store timestamps To: Robert Vollmert Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 39051 Cc: 39051@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) 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 From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 09 07:12:55 2020 Received: (at 39051) by debbugs.gnu.org; 9 Jan 2020 12:12:55 +0000 Received: from localhost ([127.0.0.1]:51899 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ipWgJ-0007nM-3L for submit@debbugs.gnu.org; Thu, 09 Jan 2020 07:12:55 -0500 Received: from mout-p-202.mailbox.org ([80.241.56.172]:14820) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ipWgH-0007n6-8U for 39051@debbugs.gnu.org; Thu, 09 Jan 2020 07:12:53 -0500 Received: from smtp2.mailbox.org (smtp2.mailbox.org [80.241.60.241]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by mout-p-202.mailbox.org (Postfix) with ESMTPS id 47tlPB6XHCzQlCT; Thu, 9 Jan 2020 13:12:46 +0100 (CET) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp2.mailbox.org ([80.241.60.241]) by spamfilter04.heinlein-hosting.de (spamfilter04.heinlein-hosting.de [80.241.56.122]) (amavisd-new, port 10030) with ESMTP id 49KykQeAzG9t; Thu, 9 Jan 2020 13:12:43 +0100 (CET) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Re: bug#39051: nginx caching headers are broken due to epoch store timestamps From: Robert Vollmert In-Reply-To: Date: Thu, 9 Jan 2020 13:12:41 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <155F39DF-2BE3-44B7-BBB6-22E89A7A4DB0@vllmrt.net> References: To: =?utf-8?Q?G=C3=A1bor_Boskovits?= X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 39051 Cc: 39051@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) 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 From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 11 16:23:47 2020 Received: (at control) by debbugs.gnu.org; 11 Jan 2020 21:23:47 +0000 Received: from localhost ([127.0.0.1]:56781 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iqOEV-00033J-E5 for submit@debbugs.gnu.org; Sat, 11 Jan 2020 16:23:47 -0500 Received: from eggs.gnu.org ([209.51.188.92]:58884) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iqOET-000336-Mx for control@debbugs.gnu.org; Sat, 11 Jan 2020 16:23:45 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:54034) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iqOEO-0002m9-Ig for control@debbugs.gnu.org; Sat, 11 Jan 2020 16:23:40 -0500 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=46366 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iqOEL-0007fi-19 for control@debbugs.gnu.org; Sat, 11 Jan 2020 16:23:38 -0500 Date: Sat, 11 Jan 2020 22:23:35 +0100 Message-Id: <87y2udu1pk.fsf@gnu.org> To: control@debbugs.gnu.org From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Subject: control message for bug #37207 MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) merge 37207 39051 quit From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 11 16:24:37 2020 Received: (at 39051) by debbugs.gnu.org; 11 Jan 2020 21:24:37 +0000 Received: from localhost ([127.0.0.1]:56789 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iqOFI-00035E-Vt for submit@debbugs.gnu.org; Sat, 11 Jan 2020 16:24:37 -0500 Received: from eggs.gnu.org ([209.51.188.92]:60996) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iqOFH-000352-Nr for 39051@debbugs.gnu.org; Sat, 11 Jan 2020 16:24:35 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:54046) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iqOFB-0005tL-UP; Sat, 11 Jan 2020 16:24:29 -0500 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=46368 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iqOFB-0007lO-Bq; Sat, 11 Jan 2020 16:24:29 -0500 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: =?utf-8?Q?G=C3=A1bor?= Boskovits Subject: Re: bug#39051: nginx caching headers are broken due to epoch store timestamps References: X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 22 =?utf-8?Q?Niv=C3=B4se?= an 228 de la =?utf-8?Q?R?= =?utf-8?Q?=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Sat, 11 Jan 2020 22:24:27 +0100 In-Reply-To: (=?utf-8?Q?=22G=C3=A1bor?= Boskovits"'s message of "Thu, 9 Jan 2020 12:00:16 +0100") Message-ID: <87tv51u1o4.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 39051 Cc: 39051@debbugs.gnu.org, Robert Vollmert X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi, G=C3=A1bor Boskovits skribis: > 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 = 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=E2=80=99ve fixed this on my server by applying a patch from Nix: >> https://github.com/robx/guix/commit/4b406f5bc608b3c0e18e15795d8fe61d3477= a3e2 > > 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=E2=80=99, also eager to see a proper fix! From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 11 16:26:04 2020 Received: (at control) by debbugs.gnu.org; 11 Jan 2020 21:26:04 +0000 Received: from localhost ([127.0.0.1]:56795 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iqOGi-00037z-CE for submit@debbugs.gnu.org; Sat, 11 Jan 2020 16:26:04 -0500 Received: from eggs.gnu.org ([209.51.188.92]:37132) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iqOGh-00037V-DE for control@debbugs.gnu.org; Sat, 11 Jan 2020 16:26:03 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:54060) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iqOGc-0004A0-8w for control@debbugs.gnu.org; Sat, 11 Jan 2020 16:25:58 -0500 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=46370 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iqOGL-0007uz-2A for control@debbugs.gnu.org; Sat, 11 Jan 2020 16:25:52 -0500 Date: Sat, 11 Jan 2020 22:25:39 +0100 Message-Id: <87sgklu1m4.fsf@gnu.org> To: control@debbugs.gnu.org From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Subject: control message for bug #37207 MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) retitle 37207 nginx serving files from the store returns Last-Modified = Epoch quit