From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Marusich Subject: bug#33721: ci.guix.info does not return Cache-Control header for substitutes Date: Wed, 12 Dec 2018 22:58:36 -0800 Message-ID: <87d0q5yktf.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35344) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gXKxd-0007UD-Ee for bug-guix@gnu.org; Thu, 13 Dec 2018 01:59:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gXKxa-0007lL-5J for bug-guix@gnu.org; Thu, 13 Dec 2018 01:59:05 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:41479) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gXKxZ-0007lC-V5 for bug-guix@gnu.org; Thu, 13 Dec 2018 01:59:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gXKxZ-0003Df-TM for bug-guix@gnu.org; Thu, 13 Dec 2018 01:59:01 -0500 Sender: "Debbugs-submit" Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35177) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gXKxM-0007Rz-Hx for bug-guix@gnu.org; Thu, 13 Dec 2018 01:58:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gXKxJ-0007TX-5Q for bug-guix@gnu.org; Thu, 13 Dec 2018 01:58:48 -0500 Received: from mail-pf1-x430.google.com ([2607:f8b0:4864:20::430]:44571) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gXKxI-0007Rs-OB for bug-guix@gnu.org; Thu, 13 Dec 2018 01:58:44 -0500 Received: by mail-pf1-x430.google.com with SMTP id u6so608858pfh.11 for ; Wed, 12 Dec 2018 22:58:44 -0800 (PST) Received: from garuda.local (c-73-53-106-26.hsd1.wa.comcast.net. [73.53.106.26]) by smtp.gmail.com with ESMTPSA id 202sm2215065pfy.87.2018.12.12.22.58.40 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 12 Dec 2018 22:58:41 -0800 (PST) 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: 33721@debbugs.gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi, I've noticed that ci.guix.info (which I see maps to the same IP address as berlin.guixsd.org) does not return a Cache-Control header for some substitutes. I've tried various URLs under the /nar/gzip/ prefix, and and they all omitted a Cache-Control header in the response. For example: =2D-8<---------------cut here---------------start------------->8--- $ curl --dump-header - -s -o /dev/null https://ci.guix.info/nar/gzip/0fw7w3= 96llw316nj36dsqnbkxzc9bqwa-python-itsdangerous-0.24 HTTP/1.1 200 OK Server: nginx/1.14.1 Date: Thu, 13 Dec 2018 06:49:04 GMT Content-Type: application/octet-stream;charset=3DISO-8859-1 Content-Length: 19449 Connection: keep-alive =2D-8<---------------cut here---------------end--------------->8--- However, some URLs do include a Cache-Control header in the response. For example: =2D-8<---------------cut here---------------start------------->8--- $ curl --dump-header - -s -o /dev/null https://ci.guix.info/s8v7vrzgpjkyf72= dlbifhprabqqlx696.narinfo HTTP/1.1 200 OK Server: nginx/1.14.1 Date: Thu, 13 Dec 2018 06:49:25 GMT Content-Type: application/x-nix-narinfo;charset=3Dutf-8 Content-Length: 1456 Connection: keep-alive Cache-Control: max-age=3D7776000 =2D-8<---------------cut here---------------end--------------->8--- I expected all URLs to return an appropriate Cache-Control header (at least when returning an HTTP 200 response), especially the URLs for the gzipped substitutes themselves, since they are likely to be large. Is there a reason why we do not include a Cache-Control header for all substitutes under the /nar/gzip/ prefix? =2D-=20 Chris --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEy/WXVcvn5+/vGD+x3UCaFdgiRp0FAlwSAxwACgkQ3UCaFdgi Rp0hnRAAlbfMaogCHXKrs2nlvsi5b+AbYmrChimKpuEnan64YO6YHBGDpuU+Dh2F OKcg9lMAGaYqnKcb8YQsU3aQuIntwIaHBPxkpEiwYklGCeaBYwoKoKtLAXdLLvmD jgU2Nnf8lxVuP3WTwK5H1aWROveQfUZqsPUL0Pq+G5jGAUnUEKPPePsC44A7nGil ARlvaO2liXLkJHBH3ceq/fqMLaD6dmbxdDsmYB/efNdYQxUCtS9zYwuFhDXIh2/k oiARkH/Ah93DWjH2n6Q0vMqhGkaXdlnbcML1jF0MmKmtUV5WJqnunrV6T0nKLo4O or6x8QptwEQ/fU/xMMZv1hWv6kPtj7ZCvPQ5CG0Ucf6IerkhLDwCQK/lsOSE8UBf XzrgZt4D/KDNCQ2NHeYwXk4fhKJsynTK/1fZj1lnh6dGImGvEVRmLdwVp/1tMEg5 u+UJrkJ1AMcaZdVEjwvueb4dCoeW01TW0y0W3pI4mthDMZcINiSnZSWOQYKEjYaO jHNGYwrpysrdLeZ7cG8fw9K1HIq6q9Morvr/v5iWeFym37pte072fGFl3UZ4PIBU bAO/ncz9XaOGY4AF1SYwc0Qf9eTJdN22qRiU0TZZ09mXhMig3WC3jwaiKc3zrSmk ATMsm174BVXwSgsUFvstlGZmLZuX/++pZGXnXlWcCPeKXhy7u+E= =VFW3 -----END PGP SIGNATURE----- --=-=-=--