From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?G=C3=A1bor?= Boskovits Subject: bug#37207: guix.gnu.org Last Modified at epoch Date: Wed, 28 Aug 2019 20:59:44 +0200 Message-ID: References: <875zmhliqj.fsf@gnu.org> <20190828170530.3a3d638e@scratchpost.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000aa0426059131fe81" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:36690) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i33Bo-0002Xo-27 for bug-guix@gnu.org; Wed, 28 Aug 2019 15:01:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i33Bm-0005yB-Hq for bug-guix@gnu.org; Wed, 28 Aug 2019 15:01:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:42403) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i33Bm-0005xm-Ah for bug-guix@gnu.org; Wed, 28 Aug 2019 15:01:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1i33Bm-0005Kn-6g for bug-guix@gnu.org; Wed, 28 Aug 2019 15:01:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <20190828170530.3a3d638e@scratchpost.org> 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: Danny Milosavljevic Cc: 37207@debbugs.gnu.org --000000000000aa0426059131fe81 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello Danny, Danny Milosavljevic 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 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
Hello Danny,

Danny Milosavljevic <dannym@scratchpost.org> ezt =C3= =ADrta (id=C5=91pont: 2019. aug. 28., Sze, 17:05):
Hi Gabor,

On Wed, 28 Aug 2019 12:40:37 +0200
G=C3=A1bor Boskovits <boskovits@gmail.com> 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 bothe= r
> with it, though. Wdyt?

Since we already emit ETag, I don't think we need to bother with Last-M= odified.

Why is the ETag so short, though?


The ETag we emit is also bad. Nginx ca= lculates this from mtime and content-lenght,
so in our case it= 9;s just content length.
=C2=A0
>wget --debug -O /dev/null=C2=A0 =C2=A0https://guix.gnu.org/pac= kages.json 2>&1 | grep -i etag
>ETag: "1-2f38b1"


Best regards,
g_b= or

--
OpenPGP Key Fingerprint: 7988:3B9F:7D6A:4DBF:3719:0367:= 2506:A96C:CF63:0B21
--000000000000aa0426059131fe81--