From unknown Thu Jun 12 08:41:00 2025 X-Loop: help-debbugs@gnu.org Subject: bug#37207: guix.gnu.org returns Last-Modified = Epoch Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 28 Aug 2019 09:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 37207 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: bug-Guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.156698596113986 (code B ref -1); Wed, 28 Aug 2019 09:53:02 +0000 Received: (at submit) by debbugs.gnu.org; 28 Aug 2019 09:52:41 +0000 Received: from localhost ([127.0.0.1]:49886 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i2ud7-0003dW-Hf for submit@debbugs.gnu.org; Wed, 28 Aug 2019 05:52:41 -0400 Received: from lists.gnu.org ([209.51.188.17]:36737) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i2ud6-0003dO-2w for submit@debbugs.gnu.org; Wed, 28 Aug 2019 05:52:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47697) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i2ud4-0002sM-W3 for bug-Guix@gnu.org; Wed, 28 Aug 2019 05:52:39 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:470:142:3::e]:46381) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1i2ud4-00006r-T6 for bug-Guix@gnu.org; Wed, 28 Aug 2019 05:52:38 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=45642 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1i2ud4-0002sZ-B2 for bug-Guix@gnu.org; Wed, 28 Aug 2019 05:52:38 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 11 Fructidor an 227 de la =?UTF-8?Q?R=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: Wed, 28 Aug 2019 11:52:36 +0200 Message-ID: <875zmhliqj.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (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-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 (---) Hello Guix, Since the use of the =E2=80=98static-web-site=E2=80=99 service, which puts = web site files in the store, nginx returns a =E2=80=98Last-Modified=E2=80=99 header = that can trick clients into caching things forever: --8<---------------cut here---------------start------------->8--- $ wget --debug -O /dev/null https://guix.gnu.org/packages.json 2>&1 | gre= p Last Last-Modified: Thu, 01 Jan 1970 00:00:01 GMT --8<---------------cut here---------------end--------------->8--- We should tell nginx to do not emit =E2=80=98Last-Modified=E2=80=99, or to = take the state from the /srv/guix.gnu.org symlink, if possible. Ludo=E2=80=99. From unknown Thu Jun 12 08:41:00 2025 X-Loop: help-debbugs@gnu.org Subject: bug#37207: guix.gnu.org Last Modified at epoch References: <875zmhliqj.fsf@gnu.org> In-Reply-To: <875zmhliqj.fsf@gnu.org> Resent-From: =?UTF-8?Q?G=C3=A1bor?= Boskovits Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 28 Aug 2019 10:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37207 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 37207@debbugs.gnu.org Received: via spool by 37207-submit@debbugs.gnu.org id=B37207.156698886218930 (code B ref 37207); Wed, 28 Aug 2019 10:42:02 +0000 Received: (at 37207) by debbugs.gnu.org; 28 Aug 2019 10:41:02 +0000 Received: from localhost ([127.0.0.1]:49894 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i2vNt-0004v3-IQ for submit@debbugs.gnu.org; Wed, 28 Aug 2019 06:41:01 -0400 Received: from mail-ed1-f53.google.com ([209.85.208.53]:38991) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i2vNq-0004uk-GU for 37207@debbugs.gnu.org; Wed, 28 Aug 2019 06:40:59 -0400 Received: by mail-ed1-f53.google.com with SMTP id g8so2460403edm.6 for <37207@debbugs.gnu.org>; Wed, 28 Aug 2019 03:40:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=JtiT8oCrUjSJq/1gnzoI0f31kwRKrYBWPx5elYFiUR8=; b=mmySAjaVCdKMa/4GtmmUYzK3WEw4/2zGsvWgr4ZEuhjCX0+AZzQ0hp6mF8KCjpmnPp m4+pplH4QsMj94iEdxMk4jpAzH7H68WYVRD/JPCq27CC13cBkYh0PAVn7m/eg3r6qUym 12xe5DOa9Wf51nm7ThwAMR5CgsPrVXupUZk6OoUpHZ0PSAS0KswRizgcg5xv28XiCCg1 wauSk2S8QPxv6ai+EKz1lBOkdO6MWKgk+AD3VkUxH9IefPj4ss6oyvW4I47mWglUBRZr SGgIqOJy32GcQYz5PH3Usly+iSIUyTt5FWWILr3WUqY7gjVx6b9isHTIbYppOCODCdxc 4v7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=JtiT8oCrUjSJq/1gnzoI0f31kwRKrYBWPx5elYFiUR8=; b=fOxjV/dCIeEWGmubfBUmcUgjuYVs2DOyI1PF8JeP2AbPIo3LKatJT6dNWiSuRbaYls CvO97DNixTcOYzAwoM+Ialh7ybJ3Ttcv1B92+p5Ly43JyducuOBQvdy8t7iyOqHHQzPk 6KxZpFy/Ys/DP0Rz3hfLdPhpKPJkQgtKe3wOivLbHEGemhwuREVDwKFJYbbtth8Ph1r+ XpBXKpwyxHj3X3pUyNS2INJ7l7f3oZL1Ns11UB2E9mdkZpJzotvJF+5ga5PX3yJocCyk 4XmPdDtgplFT6sYm9gjoyAXtT0+RjplGJANWK31mKYtLUJ10IQDjjRGY5wvV/JypcO3Z QozQ== X-Gm-Message-State: APjAAAXBkHGNppZWJKk2m0xzoFn0UL9HQsNleN5bUThA0WLkHDlHu0U5 z1+dOgjQotPkinwp4kN+cxQXFCmK490hs0lns8z0k84= X-Google-Smtp-Source: APXvYqwaiTOk30yNbLT5V5FIjGSqJLdFIz9UIqX/u75luK1RDu0qC6tSpBNYhUKbXelRty6KwwqskvUoIeZGBpw3iRM= X-Received: by 2002:a17:906:305b:: with SMTP id d27mr2398520ejd.311.1566988852143; Wed, 28 Aug 2019 03:40:52 -0700 (PDT) MIME-Version: 1.0 From: =?UTF-8?Q?G=C3=A1bor?= Boskovits Date: Wed, 28 Aug 2019 12:40:37 +0200 Message-ID: Content-Type: multipart/alternative; boundary="000000000000e62aa005912b05a1" X-Spam-Score: 0.0 (/) 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 (-) --000000000000e62aa005912b05a1 Content-Type: text/plain; charset="UTF-8" Hello, Supressing the last modified header is just an add_header Last-Modified ""; away. To get the info from the symlink seems to be much trickier, i would do with either embedded perl or embedded lua. I am not sure if we should bother with it, though. Wdyt? --000000000000e62aa005912b05a1 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello,

Supre= ssing the last modified header is just an
add_header= Last-Modified "";=C2=A0
away.

To get the info from the symlink se= ems to be much trickier, i would do with either embedded perl or embedded l= ua. I am not sure if we should bother with it, though. Wdyt?
--000000000000e62aa005912b05a1-- From unknown Thu Jun 12 08:41:00 2025 X-Loop: help-debbugs@gnu.org Subject: bug#37207: guix.gnu.org Last Modified at epoch Resent-From: Tobias Geerinckx-Rice Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 28 Aug 2019 14:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37207 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 37207@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org X-Debbugs-Original-Cc: 37207@debbugs.gnu.org Received: via spool by submit@debbugs.gnu.org id=B.156700304925984 (code B ref -1); Wed, 28 Aug 2019 14:38:02 +0000 Received: (at submit) by debbugs.gnu.org; 28 Aug 2019 14:37:29 +0000 Received: from localhost ([127.0.0.1]:51024 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i2z4j-0006l2-8W for submit@debbugs.gnu.org; Wed, 28 Aug 2019 10:37:29 -0400 Received: from lists.gnu.org ([209.51.188.17]:53193) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i2z4h-0006ko-6P for submit@debbugs.gnu.org; Wed, 28 Aug 2019 10:37:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58517) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i2z4g-0000uN-0p for bug-guix@gnu.org; Wed, 28 Aug 2019 10:37:27 -0400 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,URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i2z4e-0008N6-Bo for bug-guix@gnu.org; Wed, 28 Aug 2019 10:37:25 -0400 Received: from tobias.gr ([2001:470:7405::1]:44522) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1i2z4d-0008Lo-2F for bug-guix@gnu.org; Wed, 28 Aug 2019 10:37:24 -0400 Received: by tobias.gr (OpenSMTPD) with ESMTP id a87c6674; Wed, 28 Aug 2019 14:37:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=tobias.gr; h=from:to:cc :subject:references:in-reply-to:date:message-id:mime-version :content-type; s=2018; i=me@tobias.gr; bh=5ESkxwZWCLTxFklpD8Xnmd 5S0ScfZObQGlsWmv/rrXI=; b=Aw3JMxhqpPZapZE5fokEEAt7MpS4SzFz3FDIVP DnOxWKNCeoDDnqemseUPntpW5l6u+uNAVE4+IoxjWamTz7Bffhkp/VSiCaFrWZhR zyH7XZJc0wmEnxYTCzu8Ur3uNy6Jv8nTuYGze3Qh81t4UJ5yR6xZk0JC6rGHT7A2 SiLjScSgu7o61o1hnWZ2dQrnvvaAcOkXiefLvZLbtPEdhcZKs0JhxaMYDkt0Fb8j msBUS5a9KC8C1KMiXRpG5mmYulZIoWCkad7zUB1Ce77wTL4vf9AqkVRAnYe515X6 uH7ng8WXqzeGUip+qL2X2+AqzxQZKIKuM4ACW1jx9w+QlhzQ== Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id 71f9fc7d (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Wed, 28 Aug 2019 14:37:16 +0000 (UTC) From: Tobias Geerinckx-Rice References: <875zmhliqj.fsf@gnu.org> In-reply-to: Date: Wed, 28 Aug 2019 16:37:15 +0200 Message-ID: <877e6xqrtw.fsf@nckx> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2001:470:7405::1 X-Spam-Score: -1.4 (-) 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.4 (--) --=-=-= Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable G=C3=A1bor, Ludo', G=C3=A1bor Boskovits =E5=86=99=E9=81=93=EF=BC=9A > Supressing the last modified header is just an > add_header Last-Modified ""; > away. You'll also need: # Don't honour client If-Modified-Since constraints. if_modified_since off; # Nginx's etags are hashes of file timestamp & file length. etag off; Turning these off will of course prevent all caching. I don't=20 know if that would add measurable load to guix.gnu.org (it would=20 be more problematic if we used a CDN, but it might still make a=20 difference). Nix does something both interesting and icky =E2=80=94 as always: patch[0]= =20 nginx to look up the realpath() instead, so clients can still=20 cache using If-None-Match. Kind regards, T G-R [0]: https://github.com/NixOS/nixpkgs/pull/48337 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQT12iAyS4c9C3o4dnINsP+IT1VteQUCXWaRmwAKCRANsP+IT1Vt eWLLAP0SAJCUU8QtWOgV//NZDjDU5B90Y2jK9T9MqXOSuViDCgEAhLqEnRhED7aZ 9akV12ZscZH3PV76z5fsYmfgOwtflgA= =DnoZ -----END PGP SIGNATURE----- --=-=-=-- From unknown Thu Jun 12 08:41:00 2025 X-Loop: help-debbugs@gnu.org Subject: bug#37207: guix.gnu.org Last Modified at epoch Resent-From: Danny Milosavljevic Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 28 Aug 2019 15:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37207 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: =?UTF-8?Q?G=C3=A1bor?= Boskovits Cc: 37207@debbugs.gnu.org Received: via spool by 37207-submit@debbugs.gnu.org id=B37207.156700473628528 (code B ref 37207); Wed, 28 Aug 2019 15:06:02 +0000 Received: (at 37207) by debbugs.gnu.org; 28 Aug 2019 15:05:36 +0000 Received: from localhost ([127.0.0.1]:51048 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i2zVv-0007Q4-Ug for submit@debbugs.gnu.org; Wed, 28 Aug 2019 11:05:36 -0400 Received: from dd26836.kasserver.com ([85.13.145.193]:37216) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i2zVu-0007Pu-9g for 37207@debbugs.gnu.org; Wed, 28 Aug 2019 11:05:34 -0400 Received: from localhost (178.113.197.116.wireless.dyn.drei.com [178.113.197.116]) by dd26836.kasserver.com (Postfix) with ESMTPSA id 235383360285; Wed, 28 Aug 2019 17:05:31 +0200 (CEST) Date: Wed, 28 Aug 2019 17:05:30 +0200 From: Danny Milosavljevic Message-ID: <20190828170530.3a3d638e@scratchpost.org> In-Reply-To: References: <875zmhliqj.fsf@gnu.org> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-unknown-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/lI7mnHZFdUX9Ji.ZeOdyEgK"; protocol="application/pgp-signature" X-Spam-Score: -0.7 (/) 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.7 (-) --Sig_/lI7mnHZFdUX9Ji.ZeOdyEgK Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Gabor, On Wed, 28 Aug 2019 12:40:37 +0200 G=C3=A1bor Boskovits wrote: > Supressing the last modified header is just an > add_header Last-Modified ""; > away. >=20 > To get the info from the symlink seems to be much trickier, i would do wi= th > either embedded perl or embedded lua. I am not sure if we should bother > with it, though. Wdyt? Since we already emit ETag, I don't think we need to bother with Last-Modif= ied. Why is the ETag so short, though? >wget --debug -O /dev/null https://guix.gnu.org/packages.json 2>&1 | grep= -i etag >ETag: "1-2f38b1" --Sig_/lI7mnHZFdUX9Ji.ZeOdyEgK Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEds7GsXJ0tGXALbPZ5xo1VCwwuqUFAl1mmDoACgkQ5xo1VCww uqW/mAf+PjOVBfuAg7XAaKmU4Mi76ql2NJG/BmX0UVyYREw5ZSyIYp7xgKS5MlMm RZS8+cSPTnhGauZM04lnPmZYiBj+Zn2aoZqv/d87XeF12T/ZPfTvV4n06lLRmIMe WVkmsAiPNfZirIvsaRCfFfeuG0P9/HQmURX4WqdUqEqjO+hHeynKo3NEMgi3KUmf Nbq0QcB8ka6eYJDce8zCiXj8ePbeipFCm6NNAFwp44GuyLiPh6uOKaWHuTKDmOPt uFJS9h2XUFtyH2cvLJ5y1GKrZ40XIySsJ1D4a2xBTJzXPcSyfvEE2zcXu0nVvbk8 dy6EDme1jCg8/3efSX9LwdLcO5RWiQ== =+f+g -----END PGP SIGNATURE----- --Sig_/lI7mnHZFdUX9Ji.ZeOdyEgK-- From unknown Thu Jun 12 08:41:00 2025 X-Loop: help-debbugs@gnu.org Subject: bug#37207: guix.gnu.org Last Modified at epoch Resent-From: =?UTF-8?Q?G=C3=A1bor?= Boskovits Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 28 Aug 2019 19:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37207 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Danny Milosavljevic Cc: 37207@debbugs.gnu.org Received: via spool by 37207-submit@debbugs.gnu.org id=B37207.156701880420358 (code B ref 37207); Wed, 28 Aug 2019 19:01:02 +0000 Received: (at 37207) by debbugs.gnu.org; 28 Aug 2019 19:00:04 +0000 Received: from localhost ([127.0.0.1]:51224 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i33Aq-0005IG-0d for submit@debbugs.gnu.org; Wed, 28 Aug 2019 15:00:04 -0400 Received: from mail-ed1-f53.google.com ([209.85.208.53]:38539) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i33An-0005HE-IU for 37207@debbugs.gnu.org; Wed, 28 Aug 2019 15:00:02 -0400 Received: by mail-ed1-f53.google.com with SMTP id r12so1178028edo.5 for <37207@debbugs.gnu.org>; Wed, 28 Aug 2019 12:00:01 -0700 (PDT) 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; bh=KsWNf80SCcYH0xCzyD9sJ3x1CMCtpdv66TuC4+y1dmA=; b=Thh49QEpHGBdUuItNCi/45kVW39AdCJLHC/ZkAXKKyf4F+DD4M0yZjs0pFXaLbQaY7 m6MFVVKeMUUFKV91bj1qKxso8u3fLAo16y+bmexmWUcRrHgFh5PqEhpOxOMovLVGWa/m suQ+68q6cMFj0yuF4gtHQYP1y4kT6fZL6HKh1O3OH0BrYj6rMjsCzfwxwMPkiU6eT2wX 49eux6YMkdlCCe9Ye+UVpoNAJSbnVXnv556LpgOJjNzZrQkVJQWhJhMZYDI9attlCMch 7XG+mrQxEVmjfhnP2RmdfhWyma8RiYVlJfAE6LXQJF8mYw3hzyJukdNkveUSMGuEFuyA Jq9g== 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; bh=KsWNf80SCcYH0xCzyD9sJ3x1CMCtpdv66TuC4+y1dmA=; b=JAsp+thnOSRUhgUvZ8/4dl0rPJ+xnDCNyN/1ZvhxLAJpcWqYC9sYELKPXQPXtb6bZe 9OT8zomIW0qJCNxMuTLDCw8/GcfK1VzpFc9/8CZMKEKbZVHNrW4Ly9O/j+eeoMwYi8AO k3GAxkRjio4NcQY5vvt22ss+99fqIE8lZYKDpQ7W6sorRkslUZhBwuXha5OGQwWvUUpe BB2P06GODwWNfQ6QHtr/QFOKw3D80DgzuDNeFneK0884P5YQws/lpsJ82c4GLm9Fk0F8 tNl3zfbcWOiWM5diMlywYHKkm7cOiwWV/KSt8CV5WL4xlIGOYf3Omoouv2quTWJPkk5V agaw== X-Gm-Message-State: APjAAAVE6wCDXZvv/2vshtlzm24pRNK+46rWV/pMR3f31wGyncg02DX2 ETl8GIZXijtt6QsA75AuMbyGUtwk836Zi/xxpg== X-Google-Smtp-Source: APXvYqyAfl+Xwh085bokBzhNX0xoRQFB0QEsqjLa6Y6aF8tKPJ/WkLbcNOHco4hENxiNv5NLxmuCi21jZvjq6B8Kn7k= X-Received: by 2002:a50:86c9:: with SMTP id 9mr5738322edu.10.1567018795532; Wed, 28 Aug 2019 11:59:55 -0700 (PDT) MIME-Version: 1.0 References: <875zmhliqj.fsf@gnu.org> <20190828170530.3a3d638e@scratchpost.org> In-Reply-To: <20190828170530.3a3d638e@scratchpost.org> From: =?UTF-8?Q?G=C3=A1bor?= Boskovits Date: Wed, 28 Aug 2019 20:59:44 +0200 Message-ID: Content-Type: multipart/alternative; boundary="000000000000aa0426059131fe81" X-Spam-Score: 0.0 (/) 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 (-) --000000000000aa0426059131fe81 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello Danny, Danny Milosavljevic ezt =C3=ADrta (id=C5=91pont: 2= 019. aug. 28., Sze, 17:05): > Hi Gabor, > > On Wed, 28 Aug 2019 12:40:37 +0200 > G=C3=A1bor Boskovits wrote: > > > Supressing the last modified header is just an > > add_header Last-Modified ""; > > away. > > > > To get the info from the symlink seems to be much trickier, i would do > with > > either embedded perl or embedded lua. I am not sure if we should bother > > with it, though. Wdyt? > > Since we already emit ETag, I don't think we need to bother with > Last-Modified. > > Why is the ETag so short, though? > > The ETag we emit is also bad. Nginx calculates this from mtime and content-lenght, so in our case it's just content length. > >wget --debug -O /dev/null https://guix.gnu.org/packages.json 2>&1 | > grep -i etag > >ETag: "1-2f38b1" > > Best regards, g_bor --=20 OpenPGP Key Fingerprint: 7988:3B9F:7D6A:4DBF:3719:0367:2506:A96C:CF63:0B21 --000000000000aa0426059131fe81 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello Danny,

Danny Milosavljevic <dannym@scratchpost.org> ezt =C3= =ADrta (id=C5=91pont: 2019. aug. 28., Sze, 17:05):
Hi Gabor,

On Wed, 28 Aug 2019 12:40:37 +0200
G=C3=A1bor Boskovits <boskovits@gmail.com> wrote:

> Supressing the last modified header is just an
> add_header Last-Modified "";
> away.
>
> To get the info from the symlink seems to be much trickier, i would do= with
> either embedded perl or embedded lua. I am not sure if we should bothe= r
> with it, though. Wdyt?

Since we already emit ETag, I don't think we need to bother with Last-M= odified.

Why is the ETag so short, though?


The ETag we emit is also bad. Nginx ca= lculates this from mtime and content-lenght,
so in our case it= 9;s just content length.
=C2=A0
>wget --debug -O /dev/null=C2=A0 =C2=A0https://guix.gnu.org/pac= kages.json 2>&1 | grep -i etag
>ETag: "1-2f38b1"


Best regards,
g_b= or

--
OpenPGP Key Fingerprint: 7988:3B9F:7D6A:4DBF:3719:0367:= 2506:A96C:CF63:0B21
--000000000000aa0426059131fe81-- From unknown Thu Jun 12 08:41:00 2025 X-Loop: help-debbugs@gnu.org Subject: bug#37207: guix.gnu.org Last Modified at epoch Resent-From: =?UTF-8?Q?G=C3=A1bor?= Boskovits Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 28 Aug 2019 19:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37207 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Tobias Geerinckx-Rice Cc: 37207@debbugs.gnu.org Received: via spool by 37207-submit@debbugs.gnu.org id=B37207.156702136024812 (code B ref 37207); Wed, 28 Aug 2019 19:43:02 +0000 Received: (at 37207) by debbugs.gnu.org; 28 Aug 2019 19:42:40 +0000 Received: from localhost ([127.0.0.1]:51243 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i33q4-0006S7-3J for submit@debbugs.gnu.org; Wed, 28 Aug 2019 15:42:40 -0400 Received: from mail-ed1-f48.google.com ([209.85.208.48]:35066) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i33q2-0006Rt-0Y for 37207@debbugs.gnu.org; Wed, 28 Aug 2019 15:42:38 -0400 Received: by mail-ed1-f48.google.com with SMTP id t50so1331282edd.2 for <37207@debbugs.gnu.org>; Wed, 28 Aug 2019 12:42:37 -0700 (PDT) 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; bh=LcVeZZqcVZDBwdVhTGz86q4Fr8sVupTjED0IpGh1yx0=; b=riD7F3nEclNdu17jA6BpbC0PWrcageG2S7ZptbLN4VHI7jJaNsd4fPdx8kEyNzaTxH QlqkKbS/0P7HVfJw7GhSuKfgeRGbLTqirvdpgfNMPAbkh3bkXrcnNGkO98JatSaqtOw5 hm+WBobhXfZaoLqDVaHoWRJtiBo2AEByDh3uuNAPEYEwLez7w2bwqtVNNBhw4u8DqYzL awMwog3a38xcCjvAWs5s+ey7Z0zAxYDjnPA7JzAY66oWWvxe2RyytSiYKc7lhaiB7cqN WeueWMVPc3Lc/LzA3daZ8SfrirRTfU3oVETeiCUTPWyKPxUiyN/b4htgn3UD07uWBXLs KgDQ== 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; bh=LcVeZZqcVZDBwdVhTGz86q4Fr8sVupTjED0IpGh1yx0=; b=IxyPzx4VItZwtosYCBfGSyEi2SaEhYWk34Qlc4SrJEcgUNsWBe2wK3WCPLXlU3ZHWx zk1cK/PAK3WGGWPj2foqHhmJtEVlPRBPzQFrdJRXu3qt5bKjyM+KWuI617jLZycjU78e MV6I8+LFcL7ZaFGzyckDt3cQJd3vsS8ZhONsl3cGUwsU1BFb2y7Cb8BAo2gfwujlwyvJ Pfp5R51wbi70gXBatbWejBh+O21x6+FoWtO/qdIdQCsWYwSoktKbJoC/TS5Fh7KpFzPa pTtkmJd834kNyDbKWANHAC2+CUVOyrFIDPUzJJ6JhaS54jrFD0BerHJfF559cttKi5h9 Jibw== X-Gm-Message-State: APjAAAXH5/By71s5rG2MUAjq95Zed0L7a7hpOy93pwHYrf5VoTkfothO gvwe4TAg9aefhV1IsTgXFt9j+6foYglGj8ZAsQ== X-Google-Smtp-Source: APXvYqzZV0h4UoQg614QHHDHcbWmWin6ODXF0TvtJpfR7VgKH29Gq72+kjz4ZuiA5eCRp+UBT/IHZJoAeQ5HmTRDR7M= X-Received: by 2002:a50:86c9:: with SMTP id 9mr5959997edu.10.1567021352014; Wed, 28 Aug 2019 12:42:32 -0700 (PDT) MIME-Version: 1.0 References: <875zmhliqj.fsf@gnu.org> <877e6xqrtw.fsf@nckx> In-Reply-To: <877e6xqrtw.fsf@nckx> From: =?UTF-8?Q?G=C3=A1bor?= Boskovits Date: Wed, 28 Aug 2019 21:42:20 +0200 Message-ID: Content-Type: multipart/alternative; boundary="0000000000000ada420591329775" X-Spam-Score: 0.0 (/) 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 (-) --0000000000000ada420591329775 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello Tobias, Tobias Geerinckx-Rice via Bug reports for GNU Guix ezt =C3=ADrta (id=C5=91pont: 2019. aug. 28., Sze, 16:38): > G=C3=A1bor, Ludo', > > G=C3=A1bor Boskovits =E5=86=99=E9=81=93=EF=BC=9A > > Supressing the last modified header is just an > > add_header Last-Modified ""; > > away. > > You'll also need: > > # Don't honour client If-Modified-Since constraints. > if_modified_since off; > # Nginx's etags are hashes of file timestamp & file length. > etag off; > > You really have a point here. Based on my reseach, I came up with the following: we need etag off; we should create a file with the git last modification time of the files, updated when there is a new commit in the repo =3D> last-modified we should create a file with some hash of the files, updated when there is a new commit in the repo =3D> etag we could restrict these operations to the files modified since the last checkout. Retrieve these with embededd perl. Wdyt? > Turning these off will of course prevent all caching. I don't > know if that would add measurable load to guix.gnu.org (it would > be more problematic if we used a CDN, but it might still make a > difference). > > Nix does something both interesting and icky =E2=80=94 as always: patch[0= ] > nginx to look up the realpath() instead, so clients can still > cache using If-None-Match. > > Kind regards, > > T G-R > > [0]: https://github.com/NixOS/nixpkgs/pull/48337 > Best regards, g_bor --=20 OpenPGP Key Fingerprint: 7988:3B9F:7D6A:4DBF:3719:0367:2506:A96C:CF63:0B21 --0000000000000ada420591329775 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello Tobias,

Tobias Geerinckx-Rice vi= a Bug reports for GNU Guix <bug-guix= @gnu.org> ezt =C3=ADrta (id=C5=91pont: 2019. aug. 28., Sze, 16:38):<= br>
G=C3=A1bor, Ludo= ',

G=C3=A1bor Boskovits =E5=86=99=E9=81=93=EF=BC=9A
> Supressing the last modified header is just an
> add_header Last-Modified "";
> away.

You'll also need:

# Don't honour client If-Modified-Since constraints.
if_modified_since off;
# Nginx's etags are hashes of file timestamp & file length.
etag off;


You really have a point here.

Based on my reseach, I came up with the following:

we need
etag off;

we s= hould create a file with the git last modification time of the files, updat= ed when there is a new commit in the repo =3D> last-modified
we should create a file with some hash of the files, updated when there = is a new commit in the repo =3D> etag
we could restrict these = operations to the files modified since the last checkout.

Retrieve these with embededd perl.
Wdyt?
<= div class=3D"gmail_quote">
=C2=A0
Turning these off will of course prevent all caching.=C2=A0 I don't know if that would add measurable load to guix.gnu.org (it would
be more problematic if we used a CDN, but it might still make a
difference).

Nix does something both interesting and icky =E2=80=94 as always: patch[0] =
nginx to look up the realpath() instead, so clients can still
cache using If-None-Match.

Kind regards,

T G-R

[0]: https://github.com/NixOS/nixpkgs/pull/48337

Best regards,
g_bor

--
OpenPGP Key Fingerprint: 7988:3B9F:7D6A:4DBF:3719:0367:2506:A96C:= CF63:0B21
--0000000000000ada420591329775-- From unknown Thu Jun 12 08:41:00 2025 X-Loop: help-debbugs@gnu.org Subject: bug#37207: guix.gnu.org Last Modified at epoch Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 28 Aug 2019 20:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37207 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: =?UTF-8?Q?G=C3=A1bor?= Boskovits Cc: 37207@debbugs.gnu.org, Tobias Geerinckx-Rice Received: via spool by 37207-submit@debbugs.gnu.org id=B37207.15670243735615 (code B ref 37207); Wed, 28 Aug 2019 20:33:02 +0000 Received: (at 37207) by debbugs.gnu.org; 28 Aug 2019 20:32:53 +0000 Received: from localhost ([127.0.0.1]:51296 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i34ce-0001SU-RT for submit@debbugs.gnu.org; Wed, 28 Aug 2019 16:32:53 -0400 Received: from eggs.gnu.org ([209.51.188.92]:44217) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i34cc-0001SI-MH for 37207@debbugs.gnu.org; Wed, 28 Aug 2019 16:32:50 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:55777) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1i34cW-0007BK-90; Wed, 28 Aug 2019 16:32:44 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=48050 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1i34cV-00025O-Rx; Wed, 28 Aug 2019 16:32:44 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <875zmhliqj.fsf@gnu.org> <877e6xqrtw.fsf@nckx> Date: Wed, 28 Aug 2019 22:32:42 +0200 In-Reply-To: ("=?UTF-8?Q?G=C3=A1bor?= Boskovits"'s message of "Wed, 28 Aug 2019 21:42:20 +0200") Message-ID: <87o909f2tx.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (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-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 (---) Hello, G=C3=A1bor Boskovits skribis: > we should create a file with the git last modification time of the files, > updated when there is a new commit in the repo =3D> last-modified > we should create a file with some hash of the files, updated when there is > a new commit in the repo =3D> etag > we could restrict these operations to the files modified since the last > checkout. > > Retrieve these with embededd perl. > Wdyt? What would the config look like? AFAICS our =E2=80=98nginx=E2=80=99 packag= e doesn=E2=80=99t embed Perl, and I think it=E2=80=99s better this way. :-) Can we do that = with pure nginx directives? We create /srv/guix.gnu.org (as a symlink) with the correct mtime=C2=B9. If we can tell nginx to use it as the =E2=80=98Last-Modified=E2=80=99 date, th= at=E2=80=99s perfect. Ludo=E2=80=99. =C2=B9 https://git.savannah.gnu.org/cgit/guix/maintenance.git/tree/hydra/be= rlin.scm#n212 From unknown Thu Jun 12 08:41:00 2025 X-Loop: help-debbugs@gnu.org Subject: bug#37207: guix.gnu.org Last Modified at epoch Resent-From: =?UTF-8?Q?G=C3=A1bor?= Boskovits Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 29 Aug 2019 06:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37207 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 37207@debbugs.gnu.org, Tobias Geerinckx-Rice Received: via spool by 37207-submit@debbugs.gnu.org id=B37207.15670591258700 (code B ref 37207); Thu, 29 Aug 2019 06:13:01 +0000 Received: (at 37207) by debbugs.gnu.org; 29 Aug 2019 06:12:05 +0000 Received: from localhost ([127.0.0.1]:51504 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i3DfB-0002GG-AY for submit@debbugs.gnu.org; Thu, 29 Aug 2019 02:12:05 -0400 Received: from mail-ed1-f46.google.com ([209.85.208.46]:35122) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i3Df9-0002Fl-9j for 37207@debbugs.gnu.org; Thu, 29 Aug 2019 02:12:03 -0400 Received: by mail-ed1-f46.google.com with SMTP id t50so2727747edd.2 for <37207@debbugs.gnu.org>; Wed, 28 Aug 2019 23:12:03 -0700 (PDT) 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; bh=q2rMsfVvKopPkZqdKsCOWd50IiJ/pAVTxJs7EoHHkcg=; b=A5X+fx9+4ihajCMns+4EKgIoUv56/DeFXSAFUMxm0JypEBckUtueiS4lI2dVSBsSZE Zgp94FBmShRun94MdkMdmhN1eRuisoSsTtJ7rlHdcSnjrq3ZY6917rgQjzdosCEMNiYz Fq7OWwsdOk2Bif5Skz6M9wYpPBpEx2UBUlRXD9VXI4NzMAy9BzZLFRDsttwPq4MyjoRS GZBRsPBmeTiKI9Fp1GehgET7bRMd9DFPLFHszbO+jTpIJx2Q7G5k78OjIIK0ii5PdlNC 0Vhlk3F7JlS3AAIRKoCbyv9kCPRoMmyhorOCFmCJUlXdbUUKhq6DPvu3TR3VfgHB5CJ9 cjqA== 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; bh=q2rMsfVvKopPkZqdKsCOWd50IiJ/pAVTxJs7EoHHkcg=; b=e9Fr4JaxPWeb/PIBrOojGVrD2W29beClz8o9P4y/7wMBRUG0jdXZTjm8yvX26C6I/U 3NDbTjyQcU7JYhbf1+Y9mJyadhw58J1RUqsx891eMiQZjT7NdV8v+pOS2gmKXQEzrhAX YdX93Ry6VyIoZZKeQ9JdQyFfd+3o/3oZ+m5aM9J3XxN4+qxRySk20wXX2GGhirBLHMqs ZlcQV/jGlqbcBwQU8WrlzdPfknVRymRkEmR5GmP21qO7bbOUdAhuaKJm0u0M+yYnc3jJ NLtYLLMUF/iKsznxOv7kyFX0o+R4jY8JCQtP/HvkznRhsqCS5XvINt/VKGKf8DvfckFf +RvQ== X-Gm-Message-State: APjAAAX6j7LVqjF7ZzO3jfC1YSKgzPrMo1udQxmuLrIGPiTT9kHtrrKm nNVX7BdLePCdVt7THD8RlVABKLlsNYJiCKITQA== X-Google-Smtp-Source: APXvYqx49uQRjkekVyVjsRvYpRYl4UliJP78jDi892eDzviosTnNFmWNA3+WKAh1IAVARuz39xosHJ75DjBGAaaYhsA= X-Received: by 2002:a17:906:2f0d:: with SMTP id v13mr6303437eji.99.1567059117317; Wed, 28 Aug 2019 23:11:57 -0700 (PDT) MIME-Version: 1.0 References: <875zmhliqj.fsf@gnu.org> <877e6xqrtw.fsf@nckx> <87o909f2tx.fsf@gnu.org> In-Reply-To: <87o909f2tx.fsf@gnu.org> From: =?UTF-8?Q?G=C3=A1bor?= Boskovits Date: Thu, 29 Aug 2019 08:11:46 +0200 Message-ID: Content-Type: multipart/alternative; boundary="00000000000007a3a705913b62ec" X-Spam-Score: 0.0 (/) 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 (-) --00000000000007a3a705913b62ec Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello Ludo, Ludovic Court=C3=A8s ezt =C3=ADrta (id=C5=91pont: 2019. aug.= 28., Sze, 22:32): > Hello, > > G=C3=A1bor Boskovits skribis: > > > we should create a file with the git last modification time of the file= s, > > updated when there is a new commit in the repo =3D> last-modified > > we should create a file with some hash of the files, updated when there > is > > a new commit in the repo =3D> etag > > we could restrict these operations to the files modified since the last > > checkout. > > > > Retrieve these with embededd perl. > > Wdyt? > > What would the config look like? AFAICS our =E2=80=98nginx=E2=80=99 pack= age doesn=E2=80=99t > embed Perl, and I think it=E2=80=99s better this way. :-) Can we do tha= t with > pure nginx directives? > > We create /srv/guix.gnu.org (as a symlink) with the correct mtime=C2=B9. = If > we can tell nginx to use it as the =E2=80=98Last-Modified=E2=80=99 date, = that=E2=80=99s perfect. > > I was thinking about this. Yes, we can solve that with pure nginx. There is an issue however. It invalidates all cached entries on update, so files not modified will also need to be downloaded again. The easiest way to do that would be to simply generate an nginx config snippet at a configurable location, setting up the mtime and etags variable, and include that from the main config. If this would be ok, then I will have a look at implementing this. Ludo=E2=80=99. > > =C2=B9 > https://git.savannah.gnu.org/cgit/guix/maintenance.git/tree/hydra/berlin.= scm#n212 > Best regards, g_bor --=20 OpenPGP Key Fingerprint: 7988:3B9F:7D6A:4DBF:3719:0367:2506:A96C:CF63:0B21 --00000000000007a3a705913b62ec Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello Ludo,

Ludovic Court=C3=A8s= <ludo@gnu.org> ezt =C3=ADrta (id= =C5=91pont: 2019. aug. 28., Sze, 22:32):
Hello,

G=C3=A1bor Boskovits <boskovits@gmail.com> skribis:

> we should create a file with the git last modification time of the fil= es,
> updated when there is a new commit in the repo =3D> last-modified > we should create a file with some hash of the files, updated when ther= e is
> a new commit in the repo =3D> etag
> we could restrict these operations to the files modified since the las= t
> checkout.
>
> Retrieve these with embededd perl.
> Wdyt?

What would the config look like?=C2=A0 AFAICS our =E2=80=98nginx=E2=80=99 p= ackage doesn=E2=80=99t
embed Perl, and I think it=E2=80=99s better this way.=C2=A0 :-)=C2=A0 Can w= e do that with
pure nginx directives?

We create /srv/guix.gnu.org (as a symlink) with the correct mtime=C2=B9.=C2= =A0 If
we can tell nginx to use it as the =E2=80=98Last-Modified=E2=80=99 date, th= at=E2=80=99s perfect.


I was thinking about this. Yes, we can= solve that with pure nginx. There is an issue however.
It invali= dates all cached entries on update, so files not modified will also need to= be downloaded again.

The easiest way to do that w= ould be to simply generate an nginx config snippet at a configurable locati= on,
setting up the mtime and etags variable, and include that fro= m the main config.
=C2=A0
If this would be ok, then= I will have a look at implementing this.

Ludo=E2=80=99.

=C2=B9 https://git.= savannah.gnu.org/cgit/guix/maintenance.git/tree/hydra/berlin.scm#n212

Best regards,
g_b= or

--
OpenPGP Key Fingerprint: 7988:3B9F:7D6A:4DBF:3719:0367:= 2506:A96C:CF63:0B21
--00000000000007a3a705913b62ec-- From unknown Thu Jun 12 08:41:00 2025 X-Loop: help-debbugs@gnu.org Subject: bug#37207: guix.gnu.org Last Modified at epoch Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 29 Aug 2019 12:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37207 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: =?UTF-8?Q?G=C3=A1bor?= Boskovits Cc: 37207@debbugs.gnu.org, Tobias Geerinckx-Rice Received: via spool by 37207-submit@debbugs.gnu.org id=B37207.156708242417863 (code B ref 37207); Thu, 29 Aug 2019 12:41:02 +0000 Received: (at 37207) by debbugs.gnu.org; 29 Aug 2019 12:40:24 +0000 Received: from localhost ([127.0.0.1]:51738 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i3Jiy-0004e3-5Q for submit@debbugs.gnu.org; Thu, 29 Aug 2019 08:40:24 -0400 Received: from eggs.gnu.org ([209.51.188.92]:35405) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i3Jiw-0004dn-GL for 37207@debbugs.gnu.org; Thu, 29 Aug 2019 08:40:22 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:38732) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1i3Jiq-0000vb-5V; Thu, 29 Aug 2019 08:40:16 -0400 Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=35550 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1i3Jip-0003vA-1K; Thu, 29 Aug 2019 08:40:15 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <875zmhliqj.fsf@gnu.org> <877e6xqrtw.fsf@nckx> <87o909f2tx.fsf@gnu.org> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 12 Fructidor an 227 de la =?UTF-8?Q?R=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: Thu, 29 Aug 2019 14:40:12 +0200 In-Reply-To: ("=?UTF-8?Q?G=C3=A1bor?= Boskovits"'s message of "Thu, 29 Aug 2019 08:11:46 +0200") Message-ID: <87ftlki1qr.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (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-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, G=C3=A1bor Boskovits skribis: > Ludovic Court=C3=A8s ezt =C3=ADrta (id=C5=91pont: 2019. au= g. 28., Sze, > 22:32): > >> Hello, >> >> G=C3=A1bor Boskovits skribis: >> >> > we should create a file with the git last modification time of the fil= es, >> > updated when there is a new commit in the repo =3D> last-modified >> > we should create a file with some hash of the files, updated when there >> is >> > a new commit in the repo =3D> etag >> > we could restrict these operations to the files modified since the last >> > checkout. >> > >> > Retrieve these with embededd perl. >> > Wdyt? >> >> What would the config look like? AFAICS our =E2=80=98nginx=E2=80=99 pac= kage doesn=E2=80=99t >> embed Perl, and I think it=E2=80=99s better this way. :-) Can we do th= at with >> pure nginx directives? >> >> We create /srv/guix.gnu.org (as a symlink) with the correct mtime=C2=B9.= If >> we can tell nginx to use it as the =E2=80=98Last-Modified=E2=80=99 date,= that=E2=80=99s perfect. >> >> > I was thinking about this. Yes, we can solve that with pure nginx. There = is > an issue however. > It invalidates all cached entries on update, so files not modified will > also need to be downloaded again. > > The easiest way to do that would be to simply generate an nginx config > snippet at a configurable location, > setting up the mtime and etags variable, and include that from the main > config. > > If this would be ok, then I will have a look at implementing this. I=E2=80=99m not sure I fully understand, but yes, if you could send a proto= type as a diff against maintenance.git, that=E2=80=99d be great! Thank you, Ludo=E2=80=99. From unknown Thu Jun 12 08:41:00 2025 X-Loop: help-debbugs@gnu.org Subject: bug#37207: guix.gnu.org Last Modified at epoch Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 05 Sep 2019 20:48:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37207 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: =?UTF-8?Q?G=C3=A1bor?= Boskovits Cc: 37207@debbugs.gnu.org, Danny Milosavljevic , Tobias Geerinckx-Rice Received: via spool by 37207-submit@debbugs.gnu.org id=B37207.156771647119524 (code B ref 37207); Thu, 05 Sep 2019 20:48:01 +0000 Received: (at 37207) by debbugs.gnu.org; 5 Sep 2019 20:47:51 +0000 Received: from localhost ([127.0.0.1]:36135 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i5yfV-00054n-BH for submit@debbugs.gnu.org; Thu, 05 Sep 2019 16:47:49 -0400 Received: from eggs.gnu.org ([209.51.188.92]:52558) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i5yfR-00054V-Ok for 37207@debbugs.gnu.org; Thu, 05 Sep 2019 16:47:46 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:44767) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1i5yfL-0001et-RI; Thu, 05 Sep 2019 16:47:39 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=38666 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1i5yfL-0004dn-A6; Thu, 05 Sep 2019 16:47:39 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <875zmhliqj.fsf@gnu.org> <877e6xqrtw.fsf@nckx> <87o909f2tx.fsf@gnu.org> <87ftlki1qr.fsf@gnu.org> Date: Thu, 05 Sep 2019 22:47:36 +0200 In-Reply-To: <87ftlki1qr.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Thu, 29 Aug 2019 14:40:12 +0200") Message-ID: <875zm6eahj.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-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 (---) Hello! Did one of you have chance to come up with a trick to emit the right =E2=80=98Last-Modified=E2=80=99? We seemed to be close to having something= . :-) Thanks, Ludo=E2=80=99. From unknown Thu Jun 12 08:41:00 2025 X-Loop: help-debbugs@gnu.org Subject: bug#37207: guix.gnu.org Last Modified at epoch Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 26 Sep 2019 08:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37207 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Tobias Geerinckx-Rice Cc: 37207@debbugs.gnu.org Received: via spool by 37207-submit@debbugs.gnu.org id=B37207.156948719420095 (code B ref 37207); Thu, 26 Sep 2019 08:40:02 +0000 Received: (at 37207) by debbugs.gnu.org; 26 Sep 2019 08:39:54 +0000 Received: from localhost ([127.0.0.1]:42669 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iDPJY-0005E2-T8 for submit@debbugs.gnu.org; Thu, 26 Sep 2019 04:39:53 -0400 Received: from hera.aquilenet.fr ([185.233.100.1]:57448) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iDPJV-0005Dr-V0 for 37207@debbugs.gnu.org; Thu, 26 Sep 2019 04:39:51 -0400 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id B367A10B76; Thu, 26 Sep 2019 10:39:46 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id K95kd_SRtb5b; Thu, 26 Sep 2019 10:39:45 +0200 (CEST) Received: from ribbon (unknown [IPv6:2001:660:6102:320:e120:2c8f:8909:cdfe]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 9EBBE10B75; Thu, 26 Sep 2019 10:39:45 +0200 (CEST) From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <875zmhliqj.fsf@gnu.org> <877e6xqrtw.fsf@nckx> Date: Thu, 26 Sep 2019 10:39:45 +0200 In-Reply-To: <877e6xqrtw.fsf@nckx> (Tobias Geerinckx-Rice's message of "Wed, 28 Aug 2019 16:37:15 +0200") Message-ID: <87wodvpi26.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-Spam-Score: 1.0 (+) 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: -0.0 (/) Hi Tobias, Tobias Geerinckx-Rice skribis: > Turning these off will of course prevent all caching. I don't know if > that would add measurable load to guix.gnu.org (it would be more > problematic if we used a CDN, but it might still make a difference). > > Nix does something both interesting and icky =E2=80=94 as always: patch[0] > nginx to look up the realpath() instead, so clients can still cache > using If-None-Match. > [0]: https://github.com/NixOS/nixpkgs/pull/48337 (See .) I had overlooked this patch but it looks like the right approach overall. Calling =E2=80=98realpath=E2=80=99 each time seems a bit expensiv= e as it creates an =E2=80=98lstat=E2=80=99 storm, but I can=E2=80=99t think of a be= tter solution. I also found this post whose main interest is in showing how to write a plugin to generate custom etags: https://mikewest.org/2008/11/generating-etags-for-static-content-using-ng= inx/ Thoughts? Ludo=E2=80=99. 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: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 From unknown Thu Jun 12 08:41:00 2025 X-Loop: help-debbugs@gnu.org Subject: bug#37207: nginx serving files from the store returns Last-Modified = Epoch References: <875zmhliqj.fsf@gnu.org> In-Reply-To: <875zmhliqj.fsf@gnu.org> Resent-From: Vincent Legoll Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 26 Mar 2020 23:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37207 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 37207@debbugs.gnu.org Received: via spool by 37207-submit@debbugs.gnu.org id=B37207.158526398017752 (code B ref 37207); Thu, 26 Mar 2020 23:07:02 +0000 Received: (at 37207) by debbugs.gnu.org; 26 Mar 2020 23:06:20 +0000 Received: from localhost ([127.0.0.1]:60357 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jHbZs-0004cG-0o for submit@debbugs.gnu.org; Thu, 26 Mar 2020 19:06:20 -0400 Received: from mail-io1-f42.google.com ([209.85.166.42]:44277) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jHbZq-0004bx-2V for 37207@debbugs.gnu.org; Thu, 26 Mar 2020 19:06:18 -0400 Received: by mail-io1-f42.google.com with SMTP id v3so7861383iot.11 for <37207@debbugs.gnu.org>; Thu, 26 Mar 2020 16:06:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=cWHR1D9BT6TUxLRjX3rBxpGruN52822y/uCjTDiZNtw=; b=P1JND/rclZ8Mos+dGLt9wDM8MPxe8wLFUQDKVT07ZdRPNeNE0AGg3VuxfwZOExgfNd KOKT3vhfZ6gTQc91ZKTjb3s35Cgd681+LBc5A8LKSXXwDDDLoC+b5BffgGMI91TJMKBt Yr26QuPVFZdYQE21U5DGqqTgtSHcoZF+IpjmeNwvIBx8uUFo6SygSt0Jo2rRch93uTjl SMlZ972Odq6mdR5INV8YmBB1WJ8SwozzQn+8AehVr2unrO/1DtaJ/K5F0iNJczE37ywU xfpoPX5BuArIIWxPpFlG+3TZwl20ciYzNWKC5EZbn2EZszEzBYtl0GBFdvJrCXnY33Vs ZoOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=cWHR1D9BT6TUxLRjX3rBxpGruN52822y/uCjTDiZNtw=; b=L7f7f+PqY4mMnJ7gPhtotf7Db6U5F/ozZrbLOIal9frO7s5h1ezQxl7GflZaKoPFUM pmE0DFxXiY05MpMP9gOlpPjR+endabBi7G7hQZ+so7GNrh4yPSZwxMT0G9S7P2A8Jhwc K/j9ocwzTamXwPj3ttO0YUVBnhRe/NbDrvOeUyAiY/Ph6YUdXoS6E7rjFOad+sAKKZwI xCY8Kot+I9v2+BG+8JXKNFrRxmdcbEnkuYIHNn1Y+vHAm0cs1t6t0ze9C7tk7q26Bon0 sb/M26KaBM5dGuzdKNpS0lmYc9ta3W6bLAMP8j3TxBAYFE81Js1KE4DZShrkeN0C2sPF qujQ== X-Gm-Message-State: ANhLgQ1jaMUf8bF8pmfMOF8uizj8AUAspORupIwVOtCzEzvxu+uIHlW9 Oz+uqlDPCkBBPDW8nruffOEvy3oP/URJ96UCmQmXRAZotFE= X-Google-Smtp-Source: ADFU+vt5nJD3jhuhBJICT3lb2zWenCHikrbwnifOZ1NiWnHf2iDMijd3T1jBWzwYYaEM4zGyC7uQOqzVsSjNAHDH9QY= X-Received: by 2002:a5d:8d90:: with SMTP id b16mr10359064ioj.9.1585263972374; Thu, 26 Mar 2020 16:06:12 -0700 (PDT) MIME-Version: 1.0 From: Vincent Legoll Date: Fri, 27 Mar 2020 00:06:01 +0100 Message-ID: Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) 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 (-) This bug prevents repology [1] to show the latest versions of packages in guix, as it relies on 'Last-Modified' for: https://guix.gnu.org/packages.json changing in a meaningful way... [1] https://repology.org/ -- Vincent Legoll From unknown Thu Jun 12 08:41:00 2025 X-Loop: help-debbugs@gnu.org Subject: bug#37207: Repology References: <875zmhliqj.fsf@gnu.org> In-Reply-To: <875zmhliqj.fsf@gnu.org> Resent-From: Vincent Legoll Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 26 Mar 2020 23:31:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37207 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 37207@debbugs.gnu.org Received: via spool by 37207-submit@debbugs.gnu.org id=B37207.158526544120336 (code B ref 37207); Thu, 26 Mar 2020 23:31:01 +0000 Received: (at 37207) by debbugs.gnu.org; 26 Mar 2020 23:30:41 +0000 Received: from localhost ([127.0.0.1]:60373 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jHbxR-0005Hw-M4 for submit@debbugs.gnu.org; Thu, 26 Mar 2020 19:30:41 -0400 Received: from mail-io1-f48.google.com ([209.85.166.48]:37745) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jHbxQ-0005Hk-4e for 37207@debbugs.gnu.org; Thu, 26 Mar 2020 19:30:40 -0400 Received: by mail-io1-f48.google.com with SMTP id q9so8033358iod.4 for <37207@debbugs.gnu.org>; Thu, 26 Mar 2020 16:30:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=xwea0+Aj+cbOJSNP5N/xp/4qucceI/UI8Dpz/Lukhyw=; b=HQIC2FzwL9Zq0rjC/Ac6RqWsbSEKTDY0EB0HLBDiOJUtMf6oLirV1rrBDh3JBeKBvC MqrOY9s6V47lwJtNlxqySuOCx04Jv3lHWHjWgFgmRQjI9X4BMa5ZE4gbKzhK+j+99t5d oC5AgVdeAJmqYZyLizfZyyAQkPMzAGbDT5QTqj3F5prtsCgteFCQge39RkgBIIdj9+CX b2IokCQ+GXpa7igjLs+MpGyMgJefFS+hbM38pVW5+c0OrtKMgWHfmxrrM9+H+ETiQX1B BqWI8OeHo8uw7uq0rgJ6zvVlYMM0KmNYqgQF7yGLUI5p99l+f4UxYoxSQjY08LYFVfvv H81A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=xwea0+Aj+cbOJSNP5N/xp/4qucceI/UI8Dpz/Lukhyw=; b=DLVwMV8IAXm2AsXNsabx1g1qrztIreVTBL+xQ1OuRltdgp/wBKlGRuiEJaZ2k3pDT1 93X1zwmaDvMuxdypX2ozLNxFxBlRp6IP9o6NvhDY3Rt8R3rqealMJs0+5Dt9NoM7qU/6 VUItsBrqlxyRv9owaWptijjsiUlo5XtAx5HaZeHEWh1IA87xXhhEMGeTMEJ4V2Gt+i3H X9q8NaX4YfPMd5jCU4Lb+r4BmY3DpJOsUSBrODzj5h8ynlrSH6bru7ZDUAItln6pcPCh ehc/5ZZ8Z70VY5rx4fudur0ueY4H0ZAHFE1HtYKfkcY+BncJsCvbQsfrzU8rGPCm8ZaK 0bGg== X-Gm-Message-State: ANhLgQ0bF5CvdIofvbI6yI1+WvxrH/F0VU09aPrJO0/IKYlZDgOykPKo niefVFats/Q+JICWyu1aKNP7SwjND6pX7Q1Hht0LrJzc X-Google-Smtp-Source: ADFU+vvyvHbWC8IN8IAIB/ucKHh0KDvjtkGm82nrEDQ6jSocxCy+lilm5kdZl+r+FIuvTBml1Q/jEgiuTmDY5ElJHTY= X-Received: by 2002:a5e:d516:: with SMTP id e22mr4690229iom.183.1585265434280; Thu, 26 Mar 2020 16:30:34 -0700 (PDT) MIME-Version: 1.0 From: Vincent Legoll Date: Fri, 27 Mar 2020 00:30:23 +0100 Message-ID: Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) 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 (-) It also paint us a a fairly outdated distro, despite our efforts to keep the pace and update to latest versions of packages. We may even get into the top ten, which may give us a bit of attention and attract some distrohoppers^Wusers. -- Vincent Legoll From unknown Thu Jun 12 08:41:00 2025 X-Loop: help-debbugs@gnu.org Subject: bug#37207: nginx serving files from the store returns Last-Modified = Epoch Resent-From: =?UTF-8?Q?G=C3=A1bor?= Boskovits Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 30 Mar 2020 02:36:26 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37207 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Vincent Legoll Cc: 37207@debbugs.gnu.org Received: via spool by 37207-submit@debbugs.gnu.org id=B37207.158553573617458 (code B ref 37207); Mon, 30 Mar 2020 02:36:26 +0000 Received: (at 37207) by debbugs.gnu.org; 30 Mar 2020 02:35:36 +0000 Received: from mail-wr1-f42.google.com ([209.85.221.42]:35609) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jIUaT-0000eL-Ox for 37207@debbugs.gnu.org; Sun, 29 Mar 2020 05:50:38 -0400 Received: by mail-wr1-f42.google.com with SMTP id d5so17349029wrn.2 for <37207@debbugs.gnu.org>; Sun, 29 Mar 2020 02:50:37 -0700 (PDT) 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=qhfzHZbQ0UCrO7+IWlWzj+upq9t9A05MYYhwDxmZ1ig=; b=ViTdttdGZLXJ6vLVSAwYS9X8Wjwmw+TrAEW5B/9+Y27b13assOZRvADed6s3jLDOWF 1ray1npR5t/T+zUFx1V71BZp7AOcapqJaeFNC2zABAY7trpmEMnxi4NAJa0M9C26KkY9 CA6QGxsYqJ8uQYEQrEDUTEd6F1olv8S95ggSgkshDYkv/t4HJaZV2rFt3vYM/o7Y8FmX JHf85y9R1PpOI+JaxC+erJU12OIfyQVqAHFhUa/MC1rYyWbbmG+GH3lkFmkRny7usaJ4 gadRWZhWRXzdmRyoOTVkjmBl328oc1V8gWt1bbWN14PJPcI2bdR4m5MqLQlLmLQ51SWU HmXw== 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=qhfzHZbQ0UCrO7+IWlWzj+upq9t9A05MYYhwDxmZ1ig=; b=jSQzRVRnIZp1zSU/v+aufjCsixr58668ucYzSec4UX4IVXBCMs7I1EsqHYwrt8qYS0 TdfItNGK7NbVnGyWMhNLmm/F40f/upO5bj4bB54kN63HvQNlrQr4C8Jw4tElkZHGObZZ wuYDF9zBaaO1NLOVg+adnOuO815YtKqL8K4HXx8sEGwa+CRalpdgb0fubYspi/+Ls2XZ u2BX64FwD1UVDFqtlt77ej4spQAMyrpwaCwm0D7ZH9b7wuOVL5HVxVXfnhUGcGqhKwfa UHqEyEp7K/sNPG35qpJiVn1Phg9hXDbZjdwYsmuCTRYS3MMz7ZV3//qfORrSPqMkwFkt kcwA== X-Gm-Message-State: ANhLgQ1vYjGqFbheMchoN4GcKFAJFQzwx+7vmeutKqRu2f1JCYwU5qbu RNXHu/kWTKe2kr02aCIZIa81KQC92YIXeYUxOQ== X-Google-Smtp-Source: ADFU+vt7W1YEfnJ1U9LAHLsNG1IQzEu9ZHDQdjD8SV8E2yFVHUNUZoSs0bDyovk27VWgqe6wecfsjpayFplKeMe6K2U= X-Received: by 2002:adf:97c8:: with SMTP id t8mr8966220wrb.319.1585475431884; Sun, 29 Mar 2020 02:50:31 -0700 (PDT) MIME-Version: 1.0 References: <875zmhliqj.fsf@gnu.org> In-Reply-To: From: =?UTF-8?Q?G=C3=A1bor?= Boskovits Date: Sun, 29 Mar 2020 11:50:21 +0200 Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) 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: , X-List-Received-Date: Sun, 29 Mar 2020 09:50:38 -0000 Hello Vincent, Vincent Legoll ezt =C3=ADrta (id=C5=91pont: 2020= . m=C3=A1rc. 27., P, 0:07): > > This bug prevents repology [1] to show > the latest versions of packages in guix, > as it relies on 'Last-Modified' for: > https://guix.gnu.org/packages.json > changing in a meaningful way... > Does it also use etags, or just last-modified? I ask this because we already have bug similar to this, and it would be interesting to know if it would be enough to have a meaningful etags generation, or we still have = to deal with last-modified. > [1] https://repology.org/ > > -- > Vincent Legoll > > > Best regards, g_bor --=20 OpenPGP Key Fingerprint: 7988:3B9F:7D6A:4DBF:3719:0367:2506:A96C:CF63:0B21 From unknown Thu Jun 12 08:41:00 2025 X-Loop: help-debbugs@gnu.org Subject: bug#37207: nginx serving files from the store returns Last-Modified = Epoch Resent-From: Vincent Legoll Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 30 Mar 2020 11:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37207 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: =?UTF-8?Q?G=C3=A1bor?= Boskovits Cc: 37207@debbugs.gnu.org Received: via spool by 37207-submit@debbugs.gnu.org id=B37207.158556923427854 (code B ref 37207); Mon, 30 Mar 2020 11:54:02 +0000 Received: (at 37207) by debbugs.gnu.org; 30 Mar 2020 11:53:54 +0000 Received: from localhost ([127.0.0.1]:32811 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jIszJ-0007FB-OD for submit@debbugs.gnu.org; Mon, 30 Mar 2020 07:53:53 -0400 Received: from mail-io1-f48.google.com ([209.85.166.48]:43503) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jIszH-0007Ew-Qn for 37207@debbugs.gnu.org; Mon, 30 Mar 2020 07:53:52 -0400 Received: by mail-io1-f48.google.com with SMTP id x9so10934418iom.10 for <37207@debbugs.gnu.org>; Mon, 30 Mar 2020 04:53:51 -0700 (PDT) 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=P0hgfd7HVswHo4pRwn0P5YReyGHEK3BX43cEKopyetM=; b=OpPkMU87e77j+pF98h1FqynsIrKzh8Us0Zxw9B11wFoSHm0gipTWCboBMlh//JquEQ X060AmtWsAmqiyZMYfgo6nFAsICAp3SqaGLu+d9LrfwuLCe/YwEo9O4FySVs0FArcm79 JGdQ1LLPXML46bDusWUj43NBCPOqHRb+YEcCi1DDtyQ9CcGqsh4LCEq97X/HcDw5wAOZ YEdHLlzshWuUruk9fwQm0a6iVrDNNlAd7rwbqNOPFjCeNpesDzpu0eGBAm8LIFWqAAwW BJoBetlvvESeWW99SsF7waOsbIXfc8aGA4B/lKrZGMx4Z59Nnokp2XaC9OxROTurIvu3 TdIA== 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=P0hgfd7HVswHo4pRwn0P5YReyGHEK3BX43cEKopyetM=; b=UC8mKtboclf2nGP4hlw2e3FR3fvN1BhE9WpyfrS5or0N6pRMe5U4XWU6ZuMYTzNlk2 Xg16hkjalEzvHZKhLEmBAr0vhuJTWaU/MF8OoY5+R+PRqwWodXkkhhlIc/mHKNgxIZSi WJ5C5lANgyw+XvMwTZUCutC2nmahaeNj5yYWgqNczZ/O/LO4cxrk405qefnmPn8jJlsX a3V+QUUZIj2/o7Cj0wA4j+9dn5LrAUxtUJa+H5i+ptjHQtkac0wjDM/yWE81Dn3nm/i1 a74ftOmeIXxsekZdHV7J9q6eDQBPq8g5/xnZGcPr1CmEF7C0kn+Ye0AYFNS5S9n9OodS cspA== X-Gm-Message-State: ANhLgQ0R+TS1/zuUjLdOHnf6Z1szL2G89gSLBTlDdFhMSSc8E4jboyF9 EtG6HVKQSAq8LzZa0l0I/Q48XBU5MruxtEk04Hs= X-Google-Smtp-Source: ADFU+vsRUerLm1U+Dne7DVx5cmXV+/nMGb73DgGyuKIRday1cUiVszBI8/YD8QUOnjOYbVlDAK6/z+d5MhrI2Vffnbc= X-Received: by 2002:a6b:bb45:: with SMTP id l66mr10177297iof.73.1585569226067; Mon, 30 Mar 2020 04:53:46 -0700 (PDT) MIME-Version: 1.0 References: <875zmhliqj.fsf@gnu.org> In-Reply-To: From: Vincent Legoll Date: Mon, 30 Mar 2020 13:53:35 +0200 Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) 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, On Sun, Mar 29, 2020 at 11:50 AM G=C3=A1bor Boskovits = wrote: > Does it also use etags, or just last-modified? >From the email exchange I had with the maintainer of the site, I think it only uses last-modified. > I ask this because we already have bug similar to this, and it would > be interesting to know if > it would be enough to have a meaningful etags generation, or we > still have to deal with last-modified. Is etags easier for us to handle ? --=20 Vincent Legoll From unknown Thu Jun 12 08:41:00 2025 X-Loop: help-debbugs@gnu.org Subject: bug#37207: guix.gnu.org returns Last-Modified = Epoch Resent-From: Christopher Baines Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 09 May 2020 22:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37207 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 37207@debbugs.gnu.org Cc: ludo@gnu.org Received: via spool by 37207-submit@debbugs.gnu.org id=B37207.158906206911188 (code B ref 37207); Sat, 09 May 2020 22:08:02 +0000 Received: (at 37207) by debbugs.gnu.org; 9 May 2020 22:07:49 +0000 Received: from localhost ([127.0.0.1]:48530 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jXXdN-0002uO-8W for submit@debbugs.gnu.org; Sat, 09 May 2020 18:07:49 -0400 Received: from mira.cbaines.net ([212.71.252.8]:38828) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jXXdL-0002uF-JR for 37207@debbugs.gnu.org; Sat, 09 May 2020 18:07:48 -0400 Received: from localhost (unknown [46.237.174.28]) by mira.cbaines.net (Postfix) with ESMTPSA id B24F527BBE1; Sat, 9 May 2020 23:07:46 +0100 (BST) Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id f87bf7c3; Sat, 9 May 2020 22:07:44 +0000 (UTC) References: <875zmhliqj.fsf@gnu.org> User-agent: mu4e 1.2.0; emacs 26.3 From: Christopher Baines In-reply-to: <875zmhliqj.fsf@gnu.org> Date: Sat, 09 May 2020 23:07:41 +0100 Message-ID: <87o8qwg3te.fsf@cbaines.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: 0.0 (/) 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 (-) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Ludovic Court=C3=A8s writes: > Since the use of the =E2=80=98static-web-site=E2=80=99 service, which put= s web site > files in the store, nginx returns a =E2=80=98Last-Modified=E2=80=99 heade= r that can > trick clients into caching things forever: > > --8<---------------cut here---------------start------------->8--- > $ wget --debug -O /dev/null https://guix.gnu.org/packages.json 2>&1 | g= rep Last > Last-Modified: Thu, 01 Jan 1970 00:00:01 GMT > --8<---------------cut here---------------end--------------->8--- > > We should tell nginx to do not emit =E2=80=98Last-Modified=E2=80=99, or t= o take the > state from the /srv/guix.gnu.org symlink, if possible. I ended up looking at this again in relation to Repology [1]. 1: https://github.com/repology/repology-updater/issues/218#issuecomment-525= 905704 Going back to that comment, given that the Last-Modified header (and the ETag) is wrong, it's probably sensible to remove them. That might even fix the issue with Repology fetching the packages.json file. Alternatively (or in addition), we could run a really simple Guile web server that just serves the packages.json file with the right Last-Modified value, and have NGinx proxy requests to that server. This would be pretty easy to setup I believe, and would allow providing a correct value. Thoughts? Chris --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKTBAEBCgB9FiEEPonu50WOcg2XVOCyXiijOwuE9XcFAl63Ka1fFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDNF ODlFRUU3NDU4RTcyMEQ5NzU0RTBCMjVFMjhBMzNCMEI4NEY1NzcACgkQXiijOwuE 9Xe2XBAAthr2GVCI1itmIJdRvk2x77KmpyUlOWGN9clJwBMinxS5AoqWRMrTRUiD UfMPp3/ngld5qT3WmuJDnUP/65krZ6+Pq1Add+KdetJacrpblnNY8/N3wMtv88J0 Cy5mkJstWZ2jP5Lj72kcW5WpW0mg+KqBh/76IGd9JUZJDNExcXFOTUYhJ2+qIhci fyV7dufFYUobMFhxjwnR4N4eYnBowJR8crdRNuej7W7AB+dy8LCECeb/M8x5/xBh tYoJnzGJFQezH1bCyiuPAzEuvkgc9WxAHik+bfGBrzcRQY1Jmw19mb/FjEuPKQFY Sw8FrcvlF91uYnApcxRTrWdvSRihXkNkINofAtzlrg/9WOc7tnt5k9SBuYCqmRax MQgGS6AVOnyfjXcALr/BLpRN5N0GubX52m3s3+JQX7UQPY22VdtxOjhIFiNSA4FU 4ExdtX37g+5aUWb3/qmyleL9oZ5OmzkKjUFceXsQlnUXYdfa5oWBLtUgLANXwekg mS6idRNHqz1sAbYTvc2baxv42hMT9XE3C6Lg/M+TMospGJbmVOPDeJZ96DQPEj/X qC1NRk+KWc9eTIdFt2NbMM21TefWpBGwSp+AktVPbGkzwkqGUMUHoCqNVbAz3U7L Xahl0P0FqZUXSK4/itMrXxGRjtBoNL81nwR1AryoZf8pVEAOfts= =sdwC -----END PGP SIGNATURE----- --=-=-=-- From unknown Thu Jun 12 08:41:00 2025 X-Loop: help-debbugs@gnu.org Subject: bug#37207: guix.gnu.org returns Last-Modified = Epoch Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sun, 10 May 2020 10:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37207 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Christopher Baines Cc: 37207@debbugs.gnu.org Received: via spool by 37207-submit@debbugs.gnu.org id=B37207.158910549921395 (code B ref 37207); Sun, 10 May 2020 10:12:02 +0000 Received: (at 37207) by debbugs.gnu.org; 10 May 2020 10:11:39 +0000 Received: from localhost ([127.0.0.1]:49057 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jXive-0005Yo-Qi for submit@debbugs.gnu.org; Sun, 10 May 2020 06:11:39 -0400 Received: from eggs.gnu.org ([209.51.188.92]:45962) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jXivd-0005YZ-7w for 37207@debbugs.gnu.org; Sun, 10 May 2020 06:11:25 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:40669) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jXivX-0002jm-N0; Sun, 10 May 2020 06:11:19 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=41870 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jXivW-0005w7-Pr; Sun, 10 May 2020 06:11:19 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <875zmhliqj.fsf@gnu.org> <87o8qwg3te.fsf@cbaines.net> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 22 =?UTF-8?Q?Flor=C3=A9al?= an 228 de la =?UTF-8?Q?R=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: Sun, 10 May 2020 12:11:16 +0200 In-Reply-To: <87o8qwg3te.fsf@cbaines.net> (Christopher Baines's message of "Sat, 09 May 2020 23:07:41 +0100") Message-ID: <874ksoaym3.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-Spam-Score: -2.3 (--) 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 (---) Howdy! Christopher Baines skribis: > Ludovic Court=C3=A8s writes: > >> Since the use of the =E2=80=98static-web-site=E2=80=99 service, which pu= ts web site >> files in the store, nginx returns a =E2=80=98Last-Modified=E2=80=99 head= er that can >> trick clients into caching things forever: >> >> --8<---------------cut here---------------start------------->8--- >> $ wget --debug -O /dev/null https://guix.gnu.org/packages.json 2>&1 | = grep Last >> Last-Modified: Thu, 01 Jan 1970 00:00:01 GMT >> --8<---------------cut here---------------end--------------->8--- >> >> We should tell nginx to do not emit =E2=80=98Last-Modified=E2=80=99, or = to take the >> state from the /srv/guix.gnu.org symlink, if possible. > > I ended up looking at this again in relation to Repology [1]. > > 1: https://github.com/repology/repology-updater/issues/218#issuecomment-5= 25905704 > > Going back to that comment, given that the Last-Modified header (and the > ETag) is wrong, it's probably sensible to remove them. That might even > fix the issue with Repology fetching the packages.json file. > > Alternatively (or in addition), we could run a really simple Guile web > server that just serves the packages.json file with the right > Last-Modified value, and have NGinx proxy requests to that server. This > would be pretty easy to setup I believe, and would allow providing a > correct value. > > Thoughts? I think it wouldn=E2=80=99t really help because the Last-Modified issue is pervasive. It shows for instance when accessing the web site: one often has to force the browser to reload pages to get the latest version. So I=E2=80=99m all for one of the solutions that were proposed earlier. WDYT? Ludo=E2=80=99. From unknown Thu Jun 12 08:41:00 2025 X-Loop: help-debbugs@gnu.org Subject: bug#37207: guix.gnu.org returns Last-Modified = Epoch Resent-From: Christopher Baines Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 11 May 2020 10:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37207 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 37207@debbugs.gnu.org Received: via spool by 37207-submit@debbugs.gnu.org id=B37207.158919315012087 (code B ref 37207); Mon, 11 May 2020 10:33:02 +0000 Received: (at 37207) by debbugs.gnu.org; 11 May 2020 10:32:30 +0000 Received: from localhost ([127.0.0.1]:51310 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jY5jZ-00038t-NB for submit@debbugs.gnu.org; Mon, 11 May 2020 06:32:30 -0400 Received: from mira.cbaines.net ([212.71.252.8]:54646) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jY5jX-00038j-PP for 37207@debbugs.gnu.org; Mon, 11 May 2020 06:32:28 -0400 Received: from localhost (unknown [46.237.174.28]) by mira.cbaines.net (Postfix) with ESMTPSA id D156E27BBE1; Mon, 11 May 2020 11:32:25 +0100 (BST) Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id 4450712e; Mon, 11 May 2020 10:32:23 +0000 (UTC) References: <875zmhliqj.fsf@gnu.org> <87o8qwg3te.fsf@cbaines.net> <874ksoaym3.fsf@gnu.org> User-agent: mu4e 1.2.0; emacs 26.3 From: Christopher Baines In-reply-to: <874ksoaym3.fsf@gnu.org> Date: Mon, 11 May 2020 11:32:19 +0100 Message-ID: <87imh2pxsc.fsf@cbaines.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: 0.0 (/) 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 (-) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Ludovic Court=C3=A8s writes: > Howdy! > > Christopher Baines skribis: > >> Ludovic Court=C3=A8s writes: >> >>> Since the use of the =E2=80=98static-web-site=E2=80=99 service, which p= uts web site >>> files in the store, nginx returns a =E2=80=98Last-Modified=E2=80=99 hea= der that can >>> trick clients into caching things forever: >>> >>> --8<---------------cut here---------------start------------->8--- >>> $ wget --debug -O /dev/null https://guix.gnu.org/packages.json 2>&1 |= grep Last >>> Last-Modified: Thu, 01 Jan 1970 00:00:01 GMT >>> --8<---------------cut here---------------end--------------->8--- >>> >>> We should tell nginx to do not emit =E2=80=98Last-Modified=E2=80=99, or= to take the >>> state from the /srv/guix.gnu.org symlink, if possible. >> >> I ended up looking at this again in relation to Repology [1]. >> >> 1: https://github.com/repology/repology-updater/issues/218#issuecomment-= 525905704 >> >> Going back to that comment, given that the Last-Modified header (and the >> ETag) is wrong, it's probably sensible to remove them. That might even >> fix the issue with Repology fetching the packages.json file. >> >> Alternatively (or in addition), we could run a really simple Guile web >> server that just serves the packages.json file with the right >> Last-Modified value, and have NGinx proxy requests to that server. This >> would be pretty easy to setup I believe, and would allow providing a >> correct value. >> >> Thoughts? > > I think it wouldn=E2=80=99t really help because the Last-Modified issue is > pervasive. It shows for instance when accessing the web site: one often > has to force the browser to reload pages to get the latest version. > > So I=E2=80=99m all for one of the solutions that were proposed earlier. > > WDYT? So I think removing the Last-Modified header from the responses will fix the issue with the Repology fetcher (as it will stop thinking it's already fetch the file, since it was last modified in 1970), instead it will just always process the file. Removing the Last-Modified header, and maybe the ETag as well from responses should avoid the issue with web browsers using a cached version of the page when they probably shouldn't. I realise what I described with using a Guile web server to serve the packages.json file wouldn't help with other pages (unless they're served as well, which is a possibility), but that was just an optimisation over removing the header entirely, as having the Last-Modified header, with a correct value would help the Repology fetcher cache the file. Does that make sense? It still seems to me that a small change to the NGinx config (I think these lines somewhere in the config would do it [1]) would help with the Repology fetcher issue, and the issue you describe with web browsers. 1: add_header Last-Modified ""; if_modified_since off; etag off; --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKTBAEBCgB9FiEEPonu50WOcg2XVOCyXiijOwuE9XcFAl65KbNfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDNF ODlFRUU3NDU4RTcyMEQ5NzU0RTBCMjVFMjhBMzNCMEI4NEY1NzcACgkQXiijOwuE 9XdHlA//cd0NZrmdmt1wzM1x48Mi8hbvjM0V1ySm2wJcmgcxuvqxyhJYMZXNghn8 zGQ78Z5ZBSxd4qI9WWFNe69uPewHbmTWQliu+Ju5RJSDwmPKC4EuMOWidGgcDIUh E0PF0549JYkBG2K9YAFDnnGFa+d9suJpAvqfVcNmdcPUbnXPNYj8wql0/EiYBvZU 7DnLFhiQjLxIt6za2dE7+P3kzqpOUW49b/EE8snk8/10reJhxRYuxEObTK1Vx5zL CbceiaxzYiZ5BZLu7J1zh+oH3GbErjoTI2YlDIcp7wQ7GYAhK4eWh3uRzxecCK3H A8A30EkLeKGZItHlo16djuqGKGu8rf29dchKViRaNrJ/aq/OiL+MHLbkE7zmQp9n EZNbAVBQopTuM6VgxeSvkDE+8QfoOeM2tQI6ufS3CEvPBqjIYPd+00IYk2ufjTXR tL4OmcHEbeafqnacrJDelvsIWQZPbfWXcS4hYljf76EVXWS5pnPdwCi7NfZM8yOp MpDRkAmZI/QGdHrOPjLLMm1awzT/J3ee69opMHWM+7NHYQyObysknfSDMw8SIknD bJv/I8QrjIEKEFd4PXClRIgJVBKfJ5V2v8Hz9Ry8AKXxI5NUR8CCSraAwJ2hRBOH t1yEDfQAP3uKKCXSwJ7ZvW3et7RcOzY1ggZG+8O4jH8sURGjTIs= =xvw6 -----END PGP SIGNATURE----- --=-=-=-- From unknown Thu Jun 12 08:41:00 2025 X-Loop: help-debbugs@gnu.org Subject: bug#37207: guix.gnu.org returns Last-Modified = Epoch Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 11 May 2020 12:48:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37207 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Christopher Baines Cc: 37207@debbugs.gnu.org Received: via spool by 37207-submit@debbugs.gnu.org id=B37207.15892012644228 (code B ref 37207); Mon, 11 May 2020 12:48:01 +0000 Received: (at 37207) by debbugs.gnu.org; 11 May 2020 12:47:44 +0000 Received: from localhost ([127.0.0.1]:51533 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jY7qS-000168-Gz for submit@debbugs.gnu.org; Mon, 11 May 2020 08:47:44 -0400 Received: from eggs.gnu.org ([209.51.188.92]:37252) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jY7qP-00015s-Mw for 37207@debbugs.gnu.org; Mon, 11 May 2020 08:47:42 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:34600) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jY7qK-0001fj-8v; Mon, 11 May 2020 08:47:36 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=37720 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jY7qJ-0005yI-JH; Mon, 11 May 2020 08:47:36 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <875zmhliqj.fsf@gnu.org> <87o8qwg3te.fsf@cbaines.net> <874ksoaym3.fsf@gnu.org> <87imh2pxsc.fsf@cbaines.net> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 23 =?UTF-8?Q?Flor=C3=A9al?= an 228 de la =?UTF-8?Q?R=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: Mon, 11 May 2020 14:47:34 +0200 In-Reply-To: <87imh2pxsc.fsf@cbaines.net> (Christopher Baines's message of "Mon, 11 May 2020 11:32:19 +0100") Message-ID: <873686iqop.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-Spam-Score: -2.3 (--) 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, Christopher Baines skribis: > So I think removing the Last-Modified header from the responses will fix > the issue with the Repology fetcher (as it will stop thinking it's > already fetch the file, since it was last modified in 1970), instead it > will just always process the file. > > Removing the Last-Modified header, and maybe the ETag as well from > responses should avoid the issue with web browsers using a cached > version of the page when they probably shouldn't. It would prevent client-side caching altogether. So perhaps we can do that as a stopgap (and it has the advantage of requiring only a tiny config change). Eventually, it=E2=80=99d be nice to have something better, like one of the = Etag patches discussed upthread. Thanks, Ludo=E2=80=99. From unknown Thu Jun 12 08:41:00 2025 X-Loop: help-debbugs@gnu.org Subject: bug#37207: nginx serving files from the store returns Last-Modified = Epoch References: <875zmhliqj.fsf@gnu.org> In-Reply-To: <875zmhliqj.fsf@gnu.org> Resent-From: anadon via web Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 15 May 2020 21:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37207 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 37207@debbugs.gnu.org Received: via spool by 37207-submit@debbugs.gnu.org id=B37207.15895771895238 (code B ref 37207); Fri, 15 May 2020 21:14:01 +0000 Received: (at 37207) by debbugs.gnu.org; 15 May 2020 21:13:09 +0000 Received: from localhost ([127.0.0.1]:38957 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jZhdk-0001MQ-LL for submit@debbugs.gnu.org; Fri, 15 May 2020 17:13:08 -0400 Received: from sender4-of-o56.zoho.com ([136.143.188.56]:21696) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jZhdi-0001MG-0g for 37207@debbugs.gnu.org; Fri, 15 May 2020 17:13:06 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1589577181; cv=none; d=zohomail.com; s=zohoarc; b=EEYlEoxc1qL0Ck878lkaEl1z6XG2jx41ZV+/yEQWcGKGV6SE3FvsLag4jy9pFqcpWl+rdzKkR+Y3SLSDCebdOUtPMopZA2DD7cK4a2GyHa5cJ7Qz2c0iwbQ6rxmY2ONHfa4a2Z/Icga+N/HGKn4KyOLagqX3/5o9z4cfHbMSSH4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1589577181; h=Content-Type:Date:From:MIME-Version:Message-ID:Subject:To; bh=MjjuBQnrXm9UlN10ojMXXPtWprZgbXkeHY9KXsjANTw=; b=AMq3eyT98mc5cndQ9TM5zU+ZJgYYaKcF6zUdWvbiIl7OlZxW447HDgvySnjYq4611BAofTe+sVejivAR1ZDMPSa7vgGa4T3HdczNMhP3802F7LQ0uYBdHtRyAm0gvxvQukrVWqm7voWJomNUbM913hch031Lda14XDhCMXKbdWg= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=elephly.net; spf=pass smtp.mailfrom=issues.guix.gnu.org@elephly.net; dmarc=pass header.from= header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1589577181; s=zoho; d=elephly.net; i=issues.guix.gnu.org@elephly.net; h=MIME-Version:Content-Type:From:To:Date:Message-ID:Subject; bh=MjjuBQnrXm9UlN10ojMXXPtWprZgbXkeHY9KXsjANTw=; b=caiUEHayE7d+4SC5ncFzQXeb9wKkQEI3vNivJFPWWIyXGSY7tO6xachCkF0SJpLh BUZ4qOzmJwyrhbSIEW/kvST7q6ros5WhXvsu+u7jzxJlfvXSCb/Qec1gNlEauzn3Al2 IfdHfSBNc1KwTxLCQjEZGQlZbsa15pQxgkLx4Fhg= Received: from localhost (94.100.6.72 [94.100.6.72]) by mx.zohomail.com with SMTPS id 1589577179747581.5465055042124; Fri, 15 May 2020 14:12:59 -0700 (PDT) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 From: anadon via web Date: Fri, 15 May 2020 23:12:51 +0200 Message-ID: <7f41efd4a1c0.74767349eab4d05@guile.gnu.org> X-ZohoMailClient: External X-Spam-Score: 1.2 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Any movement on this? Content analysis details: (1.2 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: elephly.net] 1.2 RCVD_IN_BL_SPAMCOP_NET RBL: Received via a relay in bl.spamcop.net [Blocked - see ] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [136.143.188.56 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [136.143.188.56 listed in wl.mailspike.net] 0.0 AC_FROM_MANY_DOTS Multiple periods in From user name 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: 0.2 (/) Any movement on this? From unknown Thu Jun 12 08:41:00 2025 X-Loop: help-debbugs@gnu.org Subject: bug#37207: [PATCH] nginx: berlin: Work around Last-Modified issues for guix.gnu.org. Resent-From: Christopher Baines Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 25 May 2020 08:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37207 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 37207@debbugs.gnu.org Received: via spool by 37207-submit@debbugs.gnu.org id=B37207.159039485318535 (code B ref 37207); Mon, 25 May 2020 08:21:02 +0000 Received: (at 37207) by debbugs.gnu.org; 25 May 2020 08:20:53 +0000 Received: from localhost ([127.0.0.1]:39731 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jd8Ls-0004os-Tl for submit@debbugs.gnu.org; Mon, 25 May 2020 04:20:53 -0400 Received: from mira.cbaines.net ([212.71.252.8]:50110) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jd8Lr-0004ol-GC for 37207@debbugs.gnu.org; Mon, 25 May 2020 04:20:52 -0400 Received: from localhost (unknown [46.237.172.222]) by mira.cbaines.net (Postfix) with ESMTPSA id 8938127BBE1 for <37207@debbugs.gnu.org>; Mon, 25 May 2020 09:20:50 +0100 (BST) Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id 2cd12d7c for <37207@debbugs.gnu.org>; Mon, 25 May 2020 08:20:47 +0000 (UTC) From: Christopher Baines Date: Mon, 25 May 2020 09:20:47 +0100 Message-Id: <20200525082047.3943-1-mail@cbaines.net> X-Mailer: git-send-email 2.26.2 In-Reply-To: <87imh2pxsc.fsf@cbaines.net> References: <87imh2pxsc.fsf@cbaines.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) 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 (-) * hydra/nginx/berlin.scm (%berlin-servers): Add some config to the nginx-server-configurations for guix.gnu.org. --- hydra/nginx/berlin.scm | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/hydra/nginx/berlin.scm b/hydra/nginx/berlin.scm index 303fd35..8c90eb1 100644 --- a/hydra/nginx/berlin.scm +++ b/hydra/nginx/berlin.scm @@ -514,6 +514,13 @@ PUBLISH-URL." (locations guix.gnu.org-locations) (raw-content (list + ;; TODO This works around NGinx using the epoch for the + ;; Last-Modified date, as well as the etag. + ;; See http://issues.guix.info/issue/37207 + "add_header Last-Modified \"\";" + "if_modified_since off;" + "etag off;" + "access_log /var/log/nginx/guix-info.access.log;"))) (nginx-server-configuration @@ -634,6 +641,13 @@ PUBLISH-URL." (append %tls-settings (list + ;; TODO This works around NGinx using the epoch for the + ;; Last-Modified date, as well as the etag. + ;; See http://issues.guix.info/issue/37207 + "add_header Last-Modified \"\";" + "if_modified_since off;" + "etag off;" + "access_log /var/log/nginx/guix-gnu-org.https.access.log;")))) (nginx-server-configuration -- 2.26.2 From unknown Thu Jun 12 08:41:00 2025 X-Loop: help-debbugs@gnu.org Subject: bug#37207: guix.gnu.org returns Last-Modified = Epoch Resent-From: Christopher Baines Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 25 May 2020 08:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37207 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 37207@debbugs.gnu.org Received: via spool by 37207-submit@debbugs.gnu.org id=B37207.159039510418934 (code B ref 37207); Mon, 25 May 2020 08:26:02 +0000 Received: (at 37207) by debbugs.gnu.org; 25 May 2020 08:25:04 +0000 Received: from localhost ([127.0.0.1]:39735 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jd8Pv-0004vI-FN for submit@debbugs.gnu.org; Mon, 25 May 2020 04:25:03 -0400 Received: from mira.cbaines.net ([212.71.252.8]:50114) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jd8Pu-0004uz-3n for 37207@debbugs.gnu.org; Mon, 25 May 2020 04:25:02 -0400 Received: from localhost (unknown [46.237.172.222]) by mira.cbaines.net (Postfix) with ESMTPSA id A632427BBE1; Mon, 25 May 2020 09:25:01 +0100 (BST) Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id 3cb46cb3; Mon, 25 May 2020 08:24:59 +0000 (UTC) References: <875zmhliqj.fsf@gnu.org> <87o8qwg3te.fsf@cbaines.net> <874ksoaym3.fsf@gnu.org> <87imh2pxsc.fsf@cbaines.net> <873686iqop.fsf@gnu.org> User-agent: mu4e 1.2.0; emacs 26.3 From: Christopher Baines In-reply-to: <873686iqop.fsf@gnu.org> Date: Mon, 25 May 2020 09:24:59 +0100 Message-ID: <87h7w4l8v8.fsf@cbaines.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: 0.0 (/) 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 (-) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Ludovic Court=C3=A8s writes: > Hi, > > Christopher Baines skribis: > >> So I think removing the Last-Modified header from the responses will fix >> the issue with the Repology fetcher (as it will stop thinking it's >> already fetch the file, since it was last modified in 1970), instead it >> will just always process the file. >> >> Removing the Last-Modified header, and maybe the ETag as well from >> responses should avoid the issue with web browsers using a cached >> version of the page when they probably shouldn't. > > It would prevent client-side caching altogether. So perhaps we can do > that as a stopgap (and it has the advantage of requiring only a tiny > config change). Great, I've finally got around to sending a patch for this now. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKTBAEBCgB9FiEEPonu50WOcg2XVOCyXiijOwuE9XcFAl7LgNtfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDNF ODlFRUU3NDU4RTcyMEQ5NzU0RTBCMjVFMjhBMzNCMEI4NEY1NzcACgkQXiijOwuE 9Xd0fQ/9Hzrkwwz8OXjDZb76YfP4YOK57j8eLk8Jj1pWBeHnM93XlQqB7JB4Vubz K8zO/a7DTCcMvyswaV2k3WaGJyId+QAEZfYxxZ+6nj+IxjRXQLWt8CIEucCnezon pQmQZNQBjrRLBu/lTQ/QRx5WaSwSWdHIsCVBzQYBoIgEjPZJh13M5pSkPFi1tCU/ jvFYvibjadN7loMIVcADdDQOnjSr1auOYPQpN44VaCMwffqXdFwqgrATw5hq39+X d+54iXtzmj9MZNZ7uotpcFouJEHddPIR9LeVav1ZAYFEMVlAgv48MiDfw6XE7irh lcoSEGDvfkoBrYzw5x8dABWMduzLu7ySxv3PGxtXE7fG3wAP4C+5Mgh9phX1vrOe DnSA28YdFu9bBT9idFzXJhBOVxFn5cGaoyuxdML09DRDmyiRP0gjQluC4n9IRCiL SyWrzyW6pV+42djruPft0OlXF3zb4NeYy/ILp7KY72ldVxypgH+KmfVnjTBwQai0 LznpGL2Rh55NzgQqunGZCdV+XHOoi06D/vzpa7FNjX+5x4k9lSZeKnURVoVde1te ZdkZxvy4/BDzuX+i/e0ivHiQ7lpiwBh1IEhEUCNRPHm3GIMMGkl8cwiR+0OfnAJh DIILmSrHuDpf1rmTAlDqq3sXgI5xU3V/h+4/eaSbphbS0VHr6F0= =fd7n -----END PGP SIGNATURE----- --=-=-=--