GNU bug report logs - #37207
nginx serving files from the store returns Last-Modified = Epoch

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix; Reported by: Ludovic Courtès <ludo@HIDDEN>; merged with #39051; dated Wed, 28 Aug 2019 09:53:02 UTC; Maintainer for guix is bug-guix@HIDDEN.

Message received at 37207 <at> debbugs.gnu.org:


Received: (at 37207) by debbugs.gnu.org; 30 Mar 2020 02:35:36 +0000
From boskovits@HIDDEN Sun Mar 29 05:50:38 2020
Received: from mail-wr1-f42.google.com ([209.85.221.42]:35609)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <boskovits@HIDDEN>) id 1jIUaT-0000eL-Ox
 for 37207 <at> 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 <at> 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@HIDDEN>
 <CAEwRq=qCz5-eseg7na7AjbvzJi9rwx18TUVuP=6KSXtdLM2Fbw@HIDDEN>
In-Reply-To: <CAEwRq=qCz5-eseg7na7AjbvzJi9rwx18TUVuP=6KSXtdLM2Fbw@HIDDEN>
From: =?UTF-8?Q?G=C3=A1bor_Boskovits?= <boskovits@HIDDEN>
Date: Sun, 29 Mar 2020 11:50:21 +0200
Message-ID: <CAE4v=pjF--P0A-cCuk-jYDzneaKqF09yVNCEANw_vKR-vEYfVA@HIDDEN>
Subject: Re: bug#37207: nginx serving files from the store returns
 Last-Modified = Epoch
To: Vincent Legoll <vincent.legoll@HIDDEN>
Cc: 37207 <at> debbugs.gnu.org
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 37207
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 29 Mar 2020 09:50:38 -0000

Hello Vincent,

Vincent Legoll <vincent.legoll@HIDDEN> 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




Information forwarded to bug-guix@HIDDEN:
bug#37207; Package guix. Full text available.

Message received at 37207 <at> debbugs.gnu.org:


Received: (at 37207) by debbugs.gnu.org; 26 Mar 2020 23:30:41 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Mar 26 19:30:41 2020
Received: from localhost ([127.0.0.1]:60373 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1jHbxR-0005Hw-M4
	for submit <at> 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 <vincent.legoll@HIDDEN>) id 1jHbxQ-0005Hk-4e
 for 37207 <at> 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 <at> 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 <vincent.legoll@HIDDEN>
Date: Fri, 27 Mar 2020 00:30:23 +0100
Message-ID: <CAEwRq=qGYquzw-Z88sX-9ga4Rr8mu2qE5cRV=6_X_7tLarAr4Q@HIDDEN>
Subject: Repology
To: 37207 <at> debbugs.gnu.org
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 37207
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
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




Information forwarded to bug-guix@HIDDEN:
bug#37207; Package guix. Full text available.

Message received at 37207 <at> debbugs.gnu.org:


Received: (at 37207) by debbugs.gnu.org; 26 Mar 2020 23:06:20 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Mar 26 19:06:20 2020
Received: from localhost ([127.0.0.1]:60357 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1jHbZs-0004cG-0o
	for submit <at> 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 <vincent.legoll@HIDDEN>) id 1jHbZq-0004bx-2V
 for 37207 <at> 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 <at> 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 <vincent.legoll@HIDDEN>
Date: Fri, 27 Mar 2020 00:06:01 +0100
Message-ID: <CAEwRq=qCz5-eseg7na7AjbvzJi9rwx18TUVuP=6KSXtdLM2Fbw@HIDDEN>
Subject: Re: nginx serving files from the store returns Last-Modified = Epoch
To: 37207 <at> debbugs.gnu.org
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 37207
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
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




Information forwarded to bug-guix@HIDDEN:
bug#37207; Package guix. Full text available.
Changed bug title to 'nginx serving files from the store returns Last-Modified = Epoch' from 'guix.gnu.org returns Last-Modified = Epoch' Request was from Ludovic Courtès <ludo@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Merged 37207 39051. Request was from Ludovic Courtès <ludo@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 37207 <at> debbugs.gnu.org:


Received: (at 37207) by debbugs.gnu.org; 26 Sep 2019 08:39:54 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Sep 26 04:39:54 2019
Received: from localhost ([127.0.0.1]:42669 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iDPJY-0005E2-T8
	for submit <at> 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 <ludo@HIDDEN>) id 1iDPJV-0005Dr-V0
 for 37207 <at> 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: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: Tobias Geerinckx-Rice <me@HIDDEN>
Subject: Re: bug#37207: guix.gnu.org Last Modified at epoch
References: <875zmhliqj.fsf@HIDDEN>
 <CAE4v=piZWbeVx2qMRcg-kgbq+paBKC0L+Z6f9ADLUhpZaA=37A@HIDDEN>
 <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@HIDDEN>
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-Debbugs-Envelope-To: 37207
Cc: 37207 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

Hi Tobias,

Tobias Geerinckx-Rice <me@HIDDEN> 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
<https://raw.githubusercontent.com/NixOS/nixpkgs/9bc23f31d29138f09db6af5270=
8a9b8b64deec64/pkgs/servers/http/nginx/nix-etag-1.15.4.patch>.)

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.




Information forwarded to bug-guix@HIDDEN:
bug#37207; Package guix. Full text available.

Message received at 37207 <at> debbugs.gnu.org:


Received: (at 37207) by debbugs.gnu.org; 5 Sep 2019 20:47:51 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Sep 05 16:47:51 2019
Received: from localhost ([127.0.0.1]:36135 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i5yfV-00054n-BH
	for submit <at> 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 <ludo@HIDDEN>) id 1i5yfR-00054V-Ok
 for 37207 <at> 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 <ludo@HIDDEN>)
 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 <ludo@HIDDEN>)
 id 1i5yfL-0004dn-A6; Thu, 05 Sep 2019 16:47:39 -0400
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: =?utf-8?Q?G=C3=A1bor?= Boskovits <boskovits@HIDDEN>
Subject: Re: bug#37207: guix.gnu.org Last Modified at epoch
References: <875zmhliqj.fsf@HIDDEN>
 <CAE4v=piZWbeVx2qMRcg-kgbq+paBKC0L+Z6f9ADLUhpZaA=37A@HIDDEN>
 <877e6xqrtw.fsf@nckx>
 <CAE4v=pgZzr6Cf3MCJj5Mhp4fr101ym94bLcHsLgTZ1z1sR4QSQ@HIDDEN>
 <87o909f2tx.fsf@HIDDEN>
 <CAE4v=pjOh=ZP6WN41aVCZ5ORA7AnCX7sNJi3p2M_ZsC8gmYVBQ@HIDDEN>
 <87ftlki1qr.fsf@HIDDEN>
Date: Thu, 05 Sep 2019 22:47:36 +0200
In-Reply-To: <87ftlki1qr.fsf@HIDDEN> ("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@HIDDEN>
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-Debbugs-Envelope-To: 37207
Cc: 37207 <at> debbugs.gnu.org, Danny Milosavljevic <dannym@HIDDEN>,
 Tobias Geerinckx-Rice <me@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
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.




Information forwarded to bug-guix@HIDDEN:
bug#37207; Package guix. Full text available.

Message received at 37207 <at> debbugs.gnu.org:


Received: (at 37207) by debbugs.gnu.org; 29 Aug 2019 12:40:24 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Aug 29 08:40:24 2019
Received: from localhost ([127.0.0.1]:51738 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i3Jiy-0004e3-5Q
	for submit <at> 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 <ludo@HIDDEN>) id 1i3Jiw-0004dn-GL
 for 37207 <at> 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 <ludo@HIDDEN>)
 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 <ludo@HIDDEN>)
 id 1i3Jip-0003vA-1K; Thu, 29 Aug 2019 08:40:15 -0400
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: =?utf-8?Q?G=C3=A1bor?= Boskovits <boskovits@HIDDEN>
Subject: Re: bug#37207: guix.gnu.org Last Modified at epoch
References: <875zmhliqj.fsf@HIDDEN>
 <CAE4v=piZWbeVx2qMRcg-kgbq+paBKC0L+Z6f9ADLUhpZaA=37A@HIDDEN>
 <877e6xqrtw.fsf@nckx>
 <CAE4v=pgZzr6Cf3MCJj5Mhp4fr101ym94bLcHsLgTZ1z1sR4QSQ@HIDDEN>
 <87o909f2tx.fsf@HIDDEN>
 <CAE4v=pjOh=ZP6WN41aVCZ5ORA7AnCX7sNJi3p2M_ZsC8gmYVBQ@HIDDEN>
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: <CAE4v=pjOh=ZP6WN41aVCZ5ORA7AnCX7sNJi3p2M_ZsC8gmYVBQ@HIDDEN>
 (=?utf-8?Q?=22G=C3=A1bor?= Boskovits"'s message of "Thu, 29 Aug 2019
 08:11:46 +0200")
Message-ID: <87ftlki1qr.fsf@HIDDEN>
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 <at> debbugs.gnu.org, Tobias Geerinckx-Rice <me@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Hi G=C3=A1bor,

G=C3=A1bor Boskovits <boskovits@HIDDEN> skribis:

> Ludovic Court=C3=A8s <ludo@HIDDEN> ezt =C3=ADrta (id=C5=91pont: 2019. au=
g. 28., Sze,
> 22:32):
>
>> Hello,
>>
>> G=C3=A1bor Boskovits <boskovits@HIDDEN> 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.




Information forwarded to bug-guix@HIDDEN:
bug#37207; Package guix. Full text available.

Message received at 37207 <at> debbugs.gnu.org:


Received: (at 37207) by debbugs.gnu.org; 29 Aug 2019 06:12:05 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Aug 29 02:12:05 2019
Received: from localhost ([127.0.0.1]:51504 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i3DfB-0002GG-AY
	for submit <at> 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 <boskovits@HIDDEN>) id 1i3Df9-0002Fl-9j
 for 37207 <at> 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 <at> 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@HIDDEN>
 <CAE4v=piZWbeVx2qMRcg-kgbq+paBKC0L+Z6f9ADLUhpZaA=37A@HIDDEN>
 <877e6xqrtw.fsf@nckx>
 <CAE4v=pgZzr6Cf3MCJj5Mhp4fr101ym94bLcHsLgTZ1z1sR4QSQ@HIDDEN>
 <87o909f2tx.fsf@HIDDEN>
In-Reply-To: <87o909f2tx.fsf@HIDDEN>
From: =?UTF-8?Q?G=C3=A1bor_Boskovits?= <boskovits@HIDDEN>
Date: Thu, 29 Aug 2019 08:11:46 +0200
Message-ID: <CAE4v=pjOh=ZP6WN41aVCZ5ORA7AnCX7sNJi3p2M_ZsC8gmYVBQ@HIDDEN>
Subject: Re: bug#37207: guix.gnu.org Last Modified at epoch
To: =?UTF-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
Content-Type: multipart/alternative; boundary="00000000000007a3a705913b62ec"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 37207
Cc: 37207 <at> debbugs.gnu.org, Tobias Geerinckx-Rice <me@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

--00000000000007a3a705913b62ec
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Hello Ludo,

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

> Hello,
>
> G=C3=A1bor Boskovits <boskovits@HIDDEN> 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

<div dir=3D"ltr"><div><div dir=3D"ltr">Hello Ludo,<br></div><br><div class=
=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">Ludovic Court=C3=A8s=
 &lt;<a href=3D"mailto:ludo@HIDDEN">ludo@HIDDEN</a>&gt; ezt =C3=ADrta (id=
=C5=91pont: 2019. aug. 28., Sze, 22:32):<br></div><blockquote class=3D"gmai=
l_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,20=
4,204);padding-left:1ex">Hello,<br>
<br>
G=C3=A1bor Boskovits &lt;<a href=3D"mailto:boskovits@HIDDEN" target=3D"_=
blank">boskovits@HIDDEN</a>&gt; skribis:<br>
<br>
&gt; we should create a file with the git last modification time of the fil=
es,<br>
&gt; updated when there is a new commit in the repo =3D&gt; last-modified<b=
r>
&gt; we should create a file with some hash of the files, updated when ther=
e is<br>
&gt; a new commit in the repo =3D&gt; etag<br>
&gt; we could restrict these operations to the files modified since the las=
t<br>
&gt; checkout.<br>
&gt;<br>
&gt; Retrieve these with embededd perl.<br>
&gt; Wdyt?<br>
<br>
What would the config look like?=C2=A0 AFAICS our =E2=80=98nginx=E2=80=99 p=
ackage doesn=E2=80=99t<br>
embed Perl, and I think it=E2=80=99s better this way.=C2=A0 :-)=C2=A0 Can w=
e do that with<br>
pure nginx directives?<br>
<br>
We create /srv/<a href=3D"http://guix.gnu.org" rel=3D"noreferrer" target=3D=
"_blank">guix.gnu.org</a> (as a symlink) with the correct mtime=C2=B9.=C2=
=A0 If<br>
we can tell nginx to use it as the =E2=80=98Last-Modified=E2=80=99 date, th=
at=E2=80=99s perfect.<br>
<br></blockquote><div><br></div><div>I was thinking about this. Yes, we can=
 solve that with pure nginx. There is an issue however.</div><div>It invali=
dates all cached entries on update, so files not modified will also need to=
 be downloaded again.</div><div><br></div><div>The easiest way to do that w=
ould be to simply generate an nginx config snippet at a configurable locati=
on,</div><div>setting up the mtime and etags variable, and include that fro=
m the main config.<br></div><div>=C2=A0</div><div>If this would be ok, then=
 I will have a look at implementing this.<br></div><div><br></div><blockquo=
te class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px =
solid rgb(204,204,204);padding-left:1ex">
Ludo=E2=80=99.<br>
<br>
=C2=B9 <a href=3D"https://git.savannah.gnu.org/cgit/guix/maintenance.git/tr=
ee/hydra/berlin.scm#n212" rel=3D"noreferrer" target=3D"_blank">https://git.=
savannah.gnu.org/cgit/guix/maintenance.git/tree/hydra/berlin.scm#n212</a><b=
r>
</blockquote></div><br clear=3D"all"></div><div>Best regards,</div><div>g_b=
or</div><div><br></div><div>-- <br><div dir=3D"ltr" class=3D"gmail_signatur=
e"><div dir=3D"ltr">OpenPGP Key Fingerprint: 7988:3B9F:7D6A:4DBF:3719:0367:=
2506:A96C:CF63:0B21<br></div></div></div></div>

--00000000000007a3a705913b62ec--




Information forwarded to bug-guix@HIDDEN:
bug#37207; Package guix. Full text available.

Message received at 37207 <at> debbugs.gnu.org:


Received: (at 37207) by debbugs.gnu.org; 28 Aug 2019 20:32:53 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Aug 28 16:32:53 2019
Received: from localhost ([127.0.0.1]:51296 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i34ce-0001SU-RT
	for submit <at> 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 <ludo@HIDDEN>) id 1i34cc-0001SI-MH
 for 37207 <at> 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 <ludo@HIDDEN>)
 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 <ludo@HIDDEN>)
 id 1i34cV-00025O-Rx; Wed, 28 Aug 2019 16:32:44 -0400
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: =?utf-8?Q?G=C3=A1bor?= Boskovits <boskovits@HIDDEN>
Subject: Re: bug#37207: guix.gnu.org Last Modified at epoch
References: <875zmhliqj.fsf@HIDDEN>
 <CAE4v=piZWbeVx2qMRcg-kgbq+paBKC0L+Z6f9ADLUhpZaA=37A@HIDDEN>
 <877e6xqrtw.fsf@nckx>
 <CAE4v=pgZzr6Cf3MCJj5Mhp4fr101ym94bLcHsLgTZ1z1sR4QSQ@HIDDEN>
Date: Wed, 28 Aug 2019 22:32:42 +0200
In-Reply-To: <CAE4v=pgZzr6Cf3MCJj5Mhp4fr101ym94bLcHsLgTZ1z1sR4QSQ@HIDDEN>
 (=?utf-8?Q?=22G=C3=A1bor?= Boskovits"'s message of "Wed, 28 Aug 2019
 21:42:20 +0200")
Message-ID: <87o909f2tx.fsf@HIDDEN>
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 <at> debbugs.gnu.org, Tobias Geerinckx-Rice <me@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Hello,

G=C3=A1bor Boskovits <boskovits@HIDDEN> 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




Information forwarded to bug-guix@HIDDEN:
bug#37207; Package guix. Full text available.

Message received at 37207 <at> debbugs.gnu.org:


Received: (at 37207) by debbugs.gnu.org; 28 Aug 2019 19:42:40 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Aug 28 15:42:40 2019
Received: from localhost ([127.0.0.1]:51243 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i33q4-0006S7-3J
	for submit <at> 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 <boskovits@HIDDEN>) id 1i33q2-0006Rt-0Y
 for 37207 <at> 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 <at> 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@HIDDEN>
 <CAE4v=piZWbeVx2qMRcg-kgbq+paBKC0L+Z6f9ADLUhpZaA=37A@HIDDEN>
 <877e6xqrtw.fsf@nckx>
In-Reply-To: <877e6xqrtw.fsf@nckx>
From: =?UTF-8?Q?G=C3=A1bor_Boskovits?= <boskovits@HIDDEN>
Date: Wed, 28 Aug 2019 21:42:20 +0200
Message-ID: <CAE4v=pgZzr6Cf3MCJj5Mhp4fr101ym94bLcHsLgTZ1z1sR4QSQ@HIDDEN>
Subject: Re: bug#37207: guix.gnu.org Last Modified at epoch
To: Tobias Geerinckx-Rice <me@HIDDEN>
Content-Type: multipart/alternative; boundary="0000000000000ada420591329775"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 37207
Cc: 37207 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
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 <bug-guix@HIDDEN> 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

<div dir=3D"ltr"><div dir=3D"ltr">Hello Tobias,<br></div><br><div class=3D"=
gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">Tobias Geerinckx-Rice vi=
a Bug reports for GNU Guix &lt;<a href=3D"mailto:bug-guix@HIDDEN">bug-guix=
@gnu.org</a>&gt; ezt =C3=ADrta (id=C5=91pont: 2019. aug. 28., Sze, 16:38):<=
br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8e=
x;border-left:1px solid rgb(204,204,204);padding-left:1ex">G=C3=A1bor, Ludo=
&#39;,<br>
<br>
G=C3=A1bor Boskovits =E5=86=99=E9=81=93=EF=BC=9A<br>
&gt; Supressing the last modified header is just an<br>
&gt; add_header Last-Modified &quot;&quot;;<br>
&gt; away.<br>
<br>
You&#39;ll also need:<br>
<br>
# Don&#39;t honour client If-Modified-Since constraints.<br>
if_modified_since off;<br>
# Nginx&#39;s etags are hashes of file timestamp &amp; file length.<br>
etag off;<br>
<br></blockquote><div><br></div><div>You really have a point here.</div><di=
v><br></div><div>Based on my reseach, I came up with the following:</div><d=
iv><br></div><div>we need</div><div>etag off;</div><div><br></div><div>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&gt; last-modified<br></div><d=
iv>we should create a file with some hash of the files, updated when there =
is a new commit in the repo =3D&gt; etag</div><div>we could restrict these =
operations to the files modified since the last checkout.</div><div><br></d=
iv><div>Retrieve these with embededd perl.</div><div>Wdyt?<br></div></div><=
div class=3D"gmail_quote"><div>=C2=A0</div><blockquote class=3D"gmail_quote=
" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);=
padding-left:1ex">
Turning these off will of course prevent all caching.=C2=A0 I don&#39;t <br=
>
know if that would add measurable load to <a href=3D"http://guix.gnu.org" r=
el=3D"noreferrer" target=3D"_blank">guix.gnu.org</a> (it would <br>
be more problematic if we used a CDN, but it might still make a <br>
difference).<br>
<br>
Nix does something both interesting and icky =E2=80=94 as always: patch[0] =
<br>
nginx to look up the realpath() instead, so clients can still <br>
cache using If-None-Match.<br>
<br>
Kind regards,<br>
<br>
T G-R<br>
<br>
[0]: <a href=3D"https://github.com/NixOS/nixpkgs/pull/48337" rel=3D"norefer=
rer" target=3D"_blank">https://github.com/NixOS/nixpkgs/pull/48337</a><br>
</blockquote></div><div><br></div><div>Best regards,</div><div>g_bor<br></d=
iv><div><br></div>-- <br><div dir=3D"ltr" class=3D"gmail_signature"><div di=
r=3D"ltr">OpenPGP Key Fingerprint: 7988:3B9F:7D6A:4DBF:3719:0367:2506:A96C:=
CF63:0B21<br></div></div></div>

--0000000000000ada420591329775--




Information forwarded to bug-guix@HIDDEN:
bug#37207; Package guix. Full text available.

Message received at 37207 <at> debbugs.gnu.org:


Received: (at 37207) by debbugs.gnu.org; 28 Aug 2019 19:00:04 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Aug 28 15:00:04 2019
Received: from localhost ([127.0.0.1]:51224 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i33Aq-0005IG-0d
	for submit <at> 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 <boskovits@HIDDEN>) id 1i33An-0005HE-IU
 for 37207 <at> 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 <at> 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@HIDDEN>
 <CAE4v=piZWbeVx2qMRcg-kgbq+paBKC0L+Z6f9ADLUhpZaA=37A@HIDDEN>
 <20190828170530.3a3d638e@HIDDEN>
In-Reply-To: <20190828170530.3a3d638e@HIDDEN>
From: =?UTF-8?Q?G=C3=A1bor_Boskovits?= <boskovits@HIDDEN>
Date: Wed, 28 Aug 2019 20:59:44 +0200
Message-ID: <CAE4v=pj08reuetW6JC2+PA3TTZkyy17szVCYH=0THsytDnsdfg@HIDDEN>
Subject: Re: bug#37207: guix.gnu.org Last Modified at epoch
To: Danny Milosavljevic <dannym@HIDDEN>
Content-Type: multipart/alternative; boundary="000000000000aa0426059131fe81"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 37207
Cc: 37207 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

--000000000000aa0426059131fe81
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Hello Danny,

Danny Milosavljevic <dannym@HIDDEN> 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 <boskovits@HIDDEN> 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

<div dir=3D"ltr"><div><div>Hello Danny,<br></div><br><div class=3D"gmail_qu=
ote"><div dir=3D"ltr" class=3D"gmail_attr">Danny Milosavljevic &lt;<a href=
=3D"mailto:dannym@HIDDEN">dannym@HIDDEN</a>&gt; ezt =C3=
=ADrta (id=C5=91pont: 2019. aug. 28., Sze, 17:05):<br></div><blockquote cla=
ss=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid =
rgb(204,204,204);padding-left:1ex">Hi Gabor,<br>
<br>
On Wed, 28 Aug 2019 12:40:37 +0200<br>
G=C3=A1bor Boskovits &lt;<a href=3D"mailto:boskovits@HIDDEN" target=3D"_=
blank">boskovits@HIDDEN</a>&gt; wrote:<br>
<br>
&gt; Supressing the last modified header is just an<br>
&gt; add_header Last-Modified &quot;&quot;;<br>
&gt; away.<br>
&gt; <br>
&gt; To get the info from the symlink seems to be much trickier, i would do=
 with<br>
&gt; either embedded perl or embedded lua. I am not sure if we should bothe=
r<br>
&gt; with it, though. Wdyt?<br>
<br>
Since we already emit ETag, I don&#39;t think we need to bother with Last-M=
odified.<br>
<br></blockquote><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px =
0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Why is the ETag so short, though?<br>
<br></blockquote><div><br></div><div>The ETag we emit is also bad. Nginx ca=
lculates this from mtime and content-lenght,</div><div>so in our case it&#3=
9;s just content length.<br></div><div>=C2=A0</div><blockquote class=3D"gma=
il_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,2=
04,204);padding-left:1ex">
&gt;wget --debug -O /dev/null=C2=A0 =C2=A0<a href=3D"https://guix.gnu.org/p=
ackages.json" rel=3D"noreferrer" target=3D"_blank">https://guix.gnu.org/pac=
kages.json</a> 2&gt;&amp;1 | grep -i etag<br>
&gt;ETag: &quot;1-2f38b1&quot;<br>
<br>
</blockquote></div><br clear=3D"all"></div><div>Best regards,</div><div>g_b=
or</div><div><br></div><div>-- <br><div dir=3D"ltr" class=3D"gmail_signatur=
e"><div dir=3D"ltr">OpenPGP Key Fingerprint: 7988:3B9F:7D6A:4DBF:3719:0367:=
2506:A96C:CF63:0B21<br></div></div></div></div>

--000000000000aa0426059131fe81--




Information forwarded to bug-guix@HIDDEN:
bug#37207; Package guix. Full text available.

Message received at 37207 <at> debbugs.gnu.org:


Received: (at 37207) by debbugs.gnu.org; 28 Aug 2019 15:05:36 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Aug 28 11:05:36 2019
Received: from localhost ([127.0.0.1]:51048 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i2zVv-0007Q4-Ug
	for submit <at> 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 <dannym@HIDDEN>) id 1i2zVu-0007Pu-9g
 for 37207 <at> 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 <dannym@HIDDEN>
To: =?ISO-8859-1?Q?G=E1bor?= Boskovits <boskovits@HIDDEN>
Subject: Re: bug#37207: guix.gnu.org Last Modified at epoch
Message-ID: <20190828170530.3a3d638e@HIDDEN>
In-Reply-To: <CAE4v=piZWbeVx2qMRcg-kgbq+paBKC0L+Z6f9ADLUhpZaA=37A@HIDDEN>
References: <875zmhliqj.fsf@HIDDEN>
 <CAE4v=piZWbeVx2qMRcg-kgbq+paBKC0L+Z6f9ADLUhpZaA=37A@HIDDEN>
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-Debbugs-Envelope-To: 37207
Cc: 37207 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
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 <boskovits@HIDDEN> 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--




Information forwarded to bug-guix@HIDDEN:
bug#37207; Package guix. Full text available.

Message received at 37207 <at> debbugs.gnu.org:


Received: (at 37207) by debbugs.gnu.org; 28 Aug 2019 14:37:27 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Aug 28 10:37:27 2019
Received: from localhost ([127.0.0.1]:51021 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i2z4g-0006kn-VB
	for submit <at> debbugs.gnu.org; Wed, 28 Aug 2019 10:37:27 -0400
Received: from tobias.gr ([80.241.217.52]:34636)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <me@HIDDEN>) id 1i2z4b-0006kP-JR
 for 37207 <at> debbugs.gnu.org; Wed, 28 Aug 2019 10:37:25 -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@HIDDEN; 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 <me@HIDDEN>
To: bug-guix@HIDDEN
Subject: Re: bug#37207: guix.gnu.org Last Modified at epoch
References: <875zmhliqj.fsf@HIDDEN>
 <CAE4v=piZWbeVx2qMRcg-kgbq+paBKC0L+Z6f9ADLUhpZaA=37A@HIDDEN>
In-reply-to: <CAE4v=piZWbeVx2qMRcg-kgbq+paBKC0L+Z6f9ADLUhpZaA=37A@HIDDEN>
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-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 37207
Cc: 37207 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

--=-=-=
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-----
--=-=-=--




Information forwarded to bug-guix@HIDDEN:
bug#37207; Package guix. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 28 Aug 2019 14:37:29 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Aug 28 10:37:29 2019
Received: from localhost ([127.0.0.1]:51024 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i2z4j-0006l2-8W
	for submit <at> 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 <me@HIDDEN>) id 1i2z4h-0006ko-6P
 for submit <at> 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 <me@HIDDEN>) id 1i2z4g-0000uN-0p
 for bug-guix@HIDDEN; 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 <me@HIDDEN>) id 1i2z4e-0008N6-Bo
 for bug-guix@HIDDEN; 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 <me@HIDDEN>) id 1i2z4d-0008Lo-2F
 for bug-guix@HIDDEN; 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@HIDDEN; 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 <me@HIDDEN>
To: bug-guix@HIDDEN
Subject: Re: bug#37207: guix.gnu.org Last Modified at epoch
References: <875zmhliqj.fsf@HIDDEN>
 <CAE4v=piZWbeVx2qMRcg-kgbq+paBKC0L+Z6f9ADLUhpZaA=37A@HIDDEN>
In-reply-to: <CAE4v=piZWbeVx2qMRcg-kgbq+paBKC0L+Z6f9ADLUhpZaA=37A@HIDDEN>
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-Debbugs-Envelope-To: submit
Cc: 37207 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
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-----
--=-=-=--




Information forwarded to bug-guix@HIDDEN:
bug#37207; Package guix. Full text available.

Message received at 37207 <at> debbugs.gnu.org:


Received: (at 37207) by debbugs.gnu.org; 28 Aug 2019 10:41:02 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Aug 28 06:41:02 2019
Received: from localhost ([127.0.0.1]:49894 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i2vNt-0004v3-IQ
	for submit <at> 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 <boskovits@HIDDEN>) id 1i2vNq-0004uk-GU
 for 37207 <at> 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 <at> 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?= <boskovits@HIDDEN>
Date: Wed, 28 Aug 2019 12:40:37 +0200
Message-ID: <CAE4v=piZWbeVx2qMRcg-kgbq+paBKC0L+Z6f9ADLUhpZaA=37A@HIDDEN>
Subject: guix.gnu.org Last Modified at epoch
To: 37207 <at> debbugs.gnu.org
Content-Type: multipart/alternative; boundary="000000000000e62aa005912b05a1"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 37207
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
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

<div dir=3D"auto">Hello,<div dir=3D"auto"><br></div><div dir=3D"auto">Supre=
ssing the last modified header is just an</div><div dir=3D"auto">add_header=
 Last-Modified &quot;&quot;;=C2=A0</div><div dir=3D"auto">away.</div><div d=
ir=3D"auto"><br></div><div dir=3D"auto">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?</div></div>

--000000000000e62aa005912b05a1--




Information forwarded to bug-guix@HIDDEN:
bug#37207; Package guix. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 28 Aug 2019 09:52:41 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Aug 28 05:52:41 2019
Received: from localhost ([127.0.0.1]:49886 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i2ud7-0003dW-Hf
	for submit <at> 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 <ludo@HIDDEN>) id 1i2ud6-0003dO-2w
 for submit <at> 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 <ludo@HIDDEN>) id 1i2ud4-0002sM-W3
 for bug-Guix@HIDDEN; 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 <ludo@HIDDEN>)
 id 1i2ud4-00006r-T6
 for bug-Guix@HIDDEN; 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 <ludo@HIDDEN>) id 1i2ud4-0002sZ-B2
 for bug-Guix@HIDDEN; Wed, 28 Aug 2019 05:52:38 -0400
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: bug-Guix@HIDDEN
Subject: guix.gnu.org returns Last-Modified = Epoch
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@HIDDEN>
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: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
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.




Acknowledgement sent to Ludovic Courtès <ludo@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guix@HIDDEN. Full text available.
Report forwarded to bug-guix@HIDDEN:
bug#37207; Package guix. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 30 Mar 2020 02:45:01 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.