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: Wed, 28 Aug 2019 22:32:42 +0200 Message-ID: <87o909f2tx.fsf@gnu.org> References: <875zmhliqj.fsf@gnu.org> <877e6xqrtw.fsf@nckx> 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]:52736) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i34cp-0001RO-Pp for bug-guix@gnu.org; Wed, 28 Aug 2019 16:33:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i34co-0007LY-EX for bug-guix@gnu.org; Wed, 28 Aug 2019 16:33:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:42475) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i34co-0007LP-Bk for bug-guix@gnu.org; Wed, 28 Aug 2019 16:33:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1i34co-0001Sw-7h for bug-guix@gnu.org; Wed, 28 Aug 2019 16:33:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: ("=?UTF-8?Q?G=C3=A1bor?= Boskovits"'s message of "Wed, 28 Aug 2019 21:42:20 +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 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