From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail
From: chad <yandros@gmail.com>
Newsgroups: gmane.emacs.devel
Subject: Re: [elpa] externals/marginalia 94fc7f0: README: Add ELPA badge
Date: Thu, 3 Jun 2021 16:12:02 -0700
Message-ID: <CAO2hHWZXqyFMJtPLC=7eJxLfEhT2qreX9hzFF=7R2z3OYU6vaA@mail.gmail.com>
References: <20210530185719.10480.76043@vcs0.savannah.gnu.org>
 <20210530185720.C7394209BF@vcs0.savannah.gnu.org>
 <jwvh7ikvvxm.fsf-monnier+emacs@gnu.org>
 <2b8bd070-845e-6b73-3f1c-209c044b1c5d@daniel-mendler.de>
 <f77cd6d3-040d-ddc2-f580-1c11c41b4374@daniel-mendler.de>
 <jwvr1hnrnhv.fsf-monnier+emacs@gnu.org> <87im2vovq3.fsf@tcd.ie>
 <581b728a-6e84-ec2d-064f-de202f3fd5cd@daniel-mendler.de>
 <jwv8s3r6kx7.fsf-monnier+emacs@gnu.org>
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary="000000000000ac4a9d05c3e4b48e"
Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214";
	logging-data="33767"; mail-complaints-to="usenet@ciao.gmane.io"
Cc: "Basil L. Contovounesios" <contovob@tcd.ie>,
 Daniel Mendler <mail@daniel-mendler.de>,
 EMACS development team <emacs-devel@gnu.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Jun 04 01:12:53 2021
Return-path: <emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org>
Envelope-to: ged-emacs-devel@m.gmane-mx.org
Original-Received: from lists.gnu.org ([209.51.188.17])
	by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
	(Exim 4.92)
	(envelope-from <emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org>)
	id 1lowWC-0008h6-W1
	for ged-emacs-devel@m.gmane-mx.org; Fri, 04 Jun 2021 01:12:53 +0200
Original-Received: from localhost ([::1]:60914 helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from <emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org>)
	id 1lowWB-0005rb-Gz
	for ged-emacs-devel@m.gmane-mx.org; Thu, 03 Jun 2021 19:12:51 -0400
Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42536)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <yandros@gmail.com>) id 1lowVf-0005Bn-HL
 for emacs-devel@gnu.org; Thu, 03 Jun 2021 19:12:19 -0400
Original-Received: from mail-lj1-x22b.google.com ([2a00:1450:4864:20::22b]:40844)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <yandros@gmail.com>) id 1lowVd-0002E4-Kw
 for emacs-devel@gnu.org; Thu, 03 Jun 2021 19:12:19 -0400
Original-Received: by mail-lj1-x22b.google.com with SMTP id u22so9173476ljh.7
 for <emacs-devel@gnu.org>; Thu, 03 Jun 2021 16:12:16 -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=1p6xlkWiqhG7v0mWdfsnvGyR/E9zUCnwsqSG3bBxWuA=;
 b=CzNYG46+KtrK1aiIqN/hwvbg6DaV0eIg6h+w7MSevi8g1xKVf4Kydp73feChYnhwzp
 rkNxZf2/HdmcmRFLhKjEC88/bvGD1nbNDS0XKWUoc3zy7vJr6O48VOXcE/0sfogV9ou1
 0RdUtiIgjOf+aF88++q0I1gCCyyUxpmCJsE21gLZHIUcDWHCBLnNvJRGrthiEXfeBrth
 lzoSawcPEpJTt6nzQfNnAOMGynpwhqnlksL4JAQMPx6YblPkiDCsY3WplbJnOtxIr9cA
 ulmZBubJQiTtFmLWPrzH+vknjfwYT0/VOzKW4BT1UdVTT7IV2WyVFMDTZbyVhrB+5OYA
 G4Dw==
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=1p6xlkWiqhG7v0mWdfsnvGyR/E9zUCnwsqSG3bBxWuA=;
 b=dqvv+zy1mhgZq1V4iEPyfem52TuvPsyPIEcpfPKFcXXo5+/tn27ZVBkcPeRV0oxifB
 cuoWI3bhtjBVv+OwCPpsonbNFsTZF0dreq4+uaWmv3dmRJMvFbflxsGV+jHr69SnvPMY
 gZfTZh7al97ivRcIZpr9drEFN1hes1PAy0oBlQVEcOjJ7ziuZiwO4nyUfjKbwv3un6gj
 emg0PeI/uAEszlyEPTqKmbG7wBlj2kT+KHsKJ0Tol1jmE+UxNnbKy/jAoIW45SZQh5f7
 l3UTjJf4ERn3F1vEcHJuqCrAWwsUGxu4DKk5mxB6BkcsHid/l8i8Y4vCqEuEFkoV7J5v
 AyAg==
X-Gm-Message-State: AOAM532eubehhf454ANfvkmCzGwk7AUj9aBxQ8BGWWSxWZtjOVBPQdDg
 F5Tv2srYkRhS48zkXz/Z8tqcPQYp0HnP2j9iEow=
X-Google-Smtp-Source: ABdhPJwmT8ugOzL3HHSdCn/dVGtGEImT3CZgBFGsUjGiKBNviU7TpkZx+3Y1O3uw+uza3F+qD/3Y5PEDVj6Zd9tvpaM=
X-Received: by 2002:a05:651c:287:: with SMTP id
 b7mr1220246ljo.41.1622761934701; 
 Thu, 03 Jun 2021 16:12:14 -0700 (PDT)
In-Reply-To: <jwv8s3r6kx7.fsf-monnier+emacs@gnu.org>
Received-SPF: pass client-ip=2a00:1450:4864:20::22b;
 envelope-from=yandros@gmail.com; helo=mail-lj1-x22b.google.com
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
 HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-BeenThere: emacs-devel@gnu.org
X-Mailman-Version: 2.1.23
Precedence: list
List-Id: "Emacs development discussions." <emacs-devel.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/emacs-devel>,
 <mailto:emacs-devel-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/emacs-devel>
List-Post: <mailto:emacs-devel@gnu.org>
List-Help: <mailto:emacs-devel-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/emacs-devel>,
 <mailto:emacs-devel-request@gnu.org?subject=subscribe>
Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org
Original-Sender: "Emacs-devel"
 <emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org>
Xref: news.gmane.io gmane.emacs.devel:270358
Archived-At: <http://permalink.gmane.org/gmane.emacs.devel/270358>

--000000000000ac4a9d05c3e4b48e
Content-Type: text/plain; charset="UTF-8"

On Thu, Jun 3, 2021 at 8:16 AM Stefan Monnier <monnier@iro.umontreal.ca>
wrote:

> Any change we can use something less aggressive than `no-cache`,
> e.g. indicate that it should be considered stale after, say, 24h?
>

You can try using the s-maxage setting for Cache Control, ala:

s-maxage=<seconds>
Overrides max-age or the Expires header, but only for shared caches (e.g.,
proxies). Ignored by private caches.


I would definitely test it before investing too much effort; in a past
life, I spent waaay too much time dealing with the general internet's
understanding/respect for the refinements of communication between clients,
servers, proxies, and caches. (tl;dr: The internet is more broken than you
expect. Yes, even you, for nearly all values of "you".)

If s-maxage doesn't work, you might have more luck with max-age (which I
guess is consistent in the number of hyphens?) instead.

You should be able to use the Apache "Header" directive, something like:

  Header set Cache-control "s-maxage=86400, public"

put inside the relevant <Directory "/mumble/badges"> or <Filesmatch
"\.svg$"> or whatnot wrapper.

I haven't actually done this in a very long time, but a quick net-search
suggests that it's still basically as functional. Hope this helps,
~Chad

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

<div dir=3D"ltr"><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail=
_attr">On Thu, Jun 3, 2021 at 8:16 AM Stefan Monnier &lt;<a href=3D"mailto:=
monnier@iro.umontreal.ca">monnier@iro.umontreal.ca</a>&gt; wrote:<br></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">Any change we can use som=
ething less aggressive than `no-cache`,<br>
e.g. indicate that it should be considered stale after, say, 24h?<br></bloc=
kquote><div><br></div><div><div dir=3D"ltr">You can try using the s-maxage =
setting for Cache Control, ala:<div><br></div><blockquote style=3D"margin:0=
px 0px 0px 40px;border:none;padding:0px"><div>s-maxage=3D&lt;seconds&gt;</d=
iv><div>Overrides max-age or the Expires header, but only for shared caches=
 (e.g., proxies). Ignored by private caches.</div></blockquote><div><br></d=
iv>I would definitely test it before investing too much effort; in a past l=
ife, I spent waaay too much time dealing with the general internet&#39;s un=
derstanding/respect for the refinements of communication between clients, s=
ervers, proxies, and caches. (tl;dr: The internet is more broken than you e=
xpect. Yes, even you, for nearly all values of &quot;you&quot;.)<div><br></=
div><div>If s-maxage doesn&#39;t work, you might have more luck with max-ag=
e (which I guess is consistent in the number of hyphens?) instead.=C2=A0<br=
><div><br></div><div>You should be able to use the Apache &quot;Header&quot=
; directive, something like:</div><div><br></div><div>=C2=A0 Header set Cac=
he-control &quot;s-maxage=3D86400, public&quot;</div><div><br></div><div>pu=
t inside the relevant=C2=A0&lt;Directory &quot;/mumble/badges&quot;&gt; or =
&lt;Filesmatch &quot;\.svg$&quot;&gt; or whatnot wrapper.<br><div><br></div=
><div>I haven&#39;t actually done this in a very long time, but a quick net=
-search suggests that it&#39;s still basically as functional. Hope this hel=
ps,</div><div>~Chad=C2=A0</div></div></div></div></div><div>=C2=A0</div></d=
iv></div>

--000000000000ac4a9d05c3e4b48e--