From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id SFe7JwlD32GIlwAAgWs5BA (envelope-from ) for ; Wed, 12 Jan 2022 22:07:21 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id kK5+JAlD32EyJwEAauVa8A (envelope-from ) for ; Wed, 12 Jan 2022 22:07:21 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 51BF336FF0 for ; Wed, 12 Jan 2022 22:07:21 +0100 (CET) Received: from localhost ([::1]:54204 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n7kpy-0002yW-8C for larch@yhetil.org; Wed, 12 Jan 2022 16:07:18 -0500 Received: from eggs.gnu.org ([209.51.188.92]:50034) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n7knm-0001Xd-54 for guix-patches@gnu.org; Wed, 12 Jan 2022 16:05:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:38130) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n7knl-0008VE-Qp for guix-patches@gnu.org; Wed, 12 Jan 2022 16:05:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n7knl-0006a8-Mj for guix-patches@gnu.org; Wed, 12 Jan 2022 16:05:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#52805] [PATCH] substitute: Add a =?UTF-8?Q?=E2=80=98--clear-cache=E2=80=99?= option. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 12 Jan 2022 21:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52805 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Tobias Geerinckx-Rice Cc: Mathieu Othacehe , 52805@debbugs.gnu.org Received: via spool by 52805-submit@debbugs.gnu.org id=B52805.164202149825288 (code B ref 52805); Wed, 12 Jan 2022 21:05:01 +0000 Received: (at 52805) by debbugs.gnu.org; 12 Jan 2022 21:04:58 +0000 Received: from localhost ([127.0.0.1]:59266 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n7knZ-0006Zg-Ou for submit@debbugs.gnu.org; Wed, 12 Jan 2022 16:04:58 -0500 Received: from hera.aquilenet.fr ([185.233.100.1]:37182) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n7knW-0006ZQ-3G for 52805@debbugs.gnu.org; Wed, 12 Jan 2022 16:04:48 -0500 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id A6E36545; Wed, 12 Jan 2022 22:04:39 +0100 (CET) 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 qAmOEBp8U0_M; Wed, 12 Jan 2022 22:04:38 +0100 (CET) Received: from ribbon (91-160-117-201.subs.proxad.net [91.160.117.201]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 63093353; Wed, 12 Jan 2022 22:04:38 +0100 (CET) From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <20211226162126.23749-1-me@tobias.gr> <87ee5x7nwj.fsf@gnu.org> <87pmphhg8q.fsf@nckx> <87czl5kif3.fsf_-_@gnu.org> <87o84phjpo.fsf@nckx> <87sftuv3q2.fsf@gnu.org> <87a6g2qgo0.fsf@nckx> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 23 =?UTF-8?Q?Niv=C3=B4se?= an 230 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, 12 Jan 2022 22:04:37 +0100 In-Reply-To: <87a6g2qgo0.fsf@nckx> (Tobias Geerinckx-Rice's message of "Tue, 11 Jan 2022 19:00:19 +0100") Message-ID: <87v8yopswq.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spamd-Bar: / X-Rspamd-Server: hera X-Rspamd-Queue-Id: A6E36545 X-Spamd-Result: default: False [-0.10 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1642021641; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=LhAmpOcEieQNelD9K+ps/AuXdHeFRBRH3sOj1B/rCso=; b=FQEP5pse08zku4DXEReCYN5MCCal8x18+0VFXORok3hnAi0St6TjRkdSDbad2bzaTzYK8j QwSkYSpJk0n0i0neHpk4L+KcoNpgmyBvv6GnP8pSLPJFT8DPgMLhh7zydWziWfU4V5Jcjr REZUMpch6iagUufS3qLF/+LDXOqaeO185clAFarf9XGZxdWNHXEJgs/KXtdX1iye0ZZKnW TqoThVlHjH7/XVCOCKfhWVcAuuJ9DH5rW9OuBS6vY0F0nBKPXpViA2APiAMQas1xBVoDBE Z5vDOCKA7vwHZeTV0wEc05WaqZlzeR0xKADN/f3bhJaai26FMAXNPd3KCPf/Zw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1642021641; a=rsa-sha256; cv=none; b=JUqtt+hiv0lTADgMt1LDEB7IobmWEN7PDBBYvVuulYkP/jr7HFFDIXJj9sAKAUJ9goZFBq pXlswwItcyykbGbGSbwFQAZrEzpwgjrvZHI1ix3s8tL1LxyQxOQufi3vjqyfmNXuTdE3K+ aioALDUYWEDuumHTXxSA0Pv3eWDPZ0u0SgXhC4QCZZ4JXAymKZs1qyKmtqLKiwj222AE5z FZyO3AruoVjhxUDl3eniPhv6yhsUZNXsOx8AMHaV5G3n8uwzu9lOfCtRuFihhaJlDvyG0v nEAsWwK7Hw25khGaD+7b78JFXYbBIj3USsT/c8hKSnMSAXaiSGAxMGyaCBX/UQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.92 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 51BF336FF0 X-Spam-Score: -3.92 X-Migadu-Scanner: scn0.migadu.com X-TUID: sL/CHQ3Rkeze Hi, Tobias Geerinckx-Rice skribis: > Caching is never to my advantage: it is =E2=80=98saving=E2=80=99 only the= work I asked > it to perform, against my wishes. =E2=80=98Look how fast I fed you possi= bly > bogus data against your will!=E2=80=99 is not an impressive boast. > > Is my concern clear? Reasonable? It=E2=80=99s clear, but I=E2=80=99m not sure it=E2=80=99s reasonable. :-) When do you have to worry about caches? =E2=80=98guix weather=E2=80=99 can cache negative replies (404s) for %narinfo-negative-ttl =3D 10mn, unless the server provides a different =E2=80=98Cache-Control=E2=80=99 TTL. So there=E2=80=99s a possibility that= during that time window it=E2=80=99ll tell you =E2=80=9Cnope=E2=80=9D when in fact the thing= has just arrived. I think that=E2=80=99s acceptable (there=E2=80=99s a slight delay but nothi= ng=E2=80=99s =E2=80=9Cbogus=E2=80=9D), and it=E2=80=99s kind to server admins. (It=E2=80=99s possible for admins to run =E2=80=98guix publish --negative-t= tl=3D0=E2=80=99 if they don=E2=80=99t mind extra traffic from users.) That said, if you find it sufficiently annoying, what about adding =E2=80=98--clear-cache=E2=80=99 to =E2=80=98guix weather=E2=80=99? HTH! Ludo=E2=80=99.