From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Subject: bug#37207: guix.gnu.org Last Modified at epoch Date: Thu, 29 Aug 2019 14:40:12 +0200 Message-ID: <87ftlki1qr.fsf@gnu.org> References: <875zmhliqj.fsf@gnu.org> <877e6xqrtw.fsf@nckx> <87o909f2tx.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:44046) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i3Jjb-0004WA-Tc for bug-guix@gnu.org; Thu, 29 Aug 2019 08:41:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i3Jja-0001wQ-TY for bug-guix@gnu.org; Thu, 29 Aug 2019 08:41:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:42918) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i3Jja-0001wI-Pl for bug-guix@gnu.org; Thu, 29 Aug 2019 08:41:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1i3Jja-0004fS-M6 for bug-guix@gnu.org; Thu, 29 Aug 2019 08:41:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: ("=?UTF-8?Q?G=C3=A1bor?= Boskovits"'s message of "Thu, 29 Aug 2019 08:11:46 +0200") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: =?UTF-8?Q?G=C3=A1bor?= Boskovits Cc: 37207@debbugs.gnu.org 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.