From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 29 08:40:24 2019 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: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: =?utf-8?Q?G=C3=A1bor?= Boskovits Subject: Re: bug#37207: guix.gnu.org Last Modified at epoch 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?=22G=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-Debbugs-Envelope-To: 37207 Cc: 37207@debbugs.gnu.org, Tobias Geerinckx-Rice 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.