From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 28 16:32:53 2019 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: =?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> Date: Wed, 28 Aug 2019 22:32:42 +0200 In-Reply-To: (=?utf-8?Q?=22G=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-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 (---) 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