From: chad <yandros@gmail.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: "Basil L. Contovounesios" <contovob@tcd.ie>,
Daniel Mendler <mail@daniel-mendler.de>,
EMACS development team <emacs-devel@gnu.org>
Subject: Re: [elpa] externals/marginalia 94fc7f0: README: Add ELPA badge
Date: Thu, 3 Jun 2021 16:12:02 -0700 [thread overview]
Message-ID: <CAO2hHWZXqyFMJtPLC=7eJxLfEhT2qreX9hzFF=7R2z3OYU6vaA@mail.gmail.com> (raw)
In-Reply-To: <jwv8s3r6kx7.fsf-monnier+emacs@gnu.org>
[-- Attachment #1: Type: text/plain, Size: 1267 bytes --]
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
[-- Attachment #2: Type: text/html, Size: 1964 bytes --]
next prev parent reply other threads:[~2021-06-03 23:12 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20210530185719.10480.76043@vcs0.savannah.gnu.org>
[not found] ` <20210530185720.C7394209BF@vcs0.savannah.gnu.org>
2021-05-30 19:56 ` [elpa] externals/marginalia 94fc7f0: README: Add ELPA badge Stefan Monnier
2021-05-31 4:56 ` Daniel Mendler
2021-05-31 13:18 ` Daniel Mendler
2021-05-31 14:27 ` Stefan Monnier
2021-06-03 14:42 ` Basil L. Contovounesios
2021-06-03 14:51 ` Daniel Mendler
2021-06-03 15:16 ` Stefan Monnier
2021-06-03 16:07 ` Jean Louis
2021-06-03 23:12 ` chad [this message]
2021-06-09 20:54 ` Stefan Monnier
2021-06-09 21:41 ` Basil L. Contovounesios
2021-06-10 0:19 ` Jean Louis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAO2hHWZXqyFMJtPLC=7eJxLfEhT2qreX9hzFF=7R2z3OYU6vaA@mail.gmail.com' \
--to=yandros@gmail.com \
--cc=contovob@tcd.ie \
--cc=emacs-devel@gnu.org \
--cc=mail@daniel-mendler.de \
--cc=monnier@iro.umontreal.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).