unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Daniel Mendler <mail@daniel-mendler.de>
To: "Basil L. Contovounesios" <contovob@tcd.ie>,
	Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Re: [elpa] externals/marginalia 94fc7f0: README: Add ELPA badge
Date: Thu, 3 Jun 2021 16:51:53 +0200	[thread overview]
Message-ID: <581b728a-6e84-ec2d-064f-de202f3fd5cd@daniel-mendler.de> (raw)
In-Reply-To: <87im2vovq3.fsf@tcd.ie>

On 6/3/21 4:42 PM, Basil L. Contovounesios wrote:
> Only minor issue is that the new badges don't play well with hosting
> services that aggressively cache images, such as GitHub:
> 
>   https://github.com/magnars/dash.el

Thank you for reporting this. I've also noticed this with my packages.
One can reset the caching by making a `curl -X PURGE` request to the
correct cache url, but this is of course no viable solution.

> MELPA seems to solve this by configuring their NGINX web server to serve
> badges with the HTTP header 'Cache-Control: no-cache':
> 
>   https://github.com/melpa/melpa/pull/2231
>   https://github.com/melpa/melpa/commit/d75f22a6
>   https://github.com/melpa/melpa/commit/1834069f
> 
>   $ wget -Sq https://elpa.gnu.org/devel/dash.svg
>     HTTP/1.1 200 OK
>     Date: Thu, 03 Jun 2021 14:27:49 GMT
>     Server: Apache/2.4.38 (Debian)
>     Last-Modified: Wed, 02 Jun 2021 21:02:33 GMT
>     ETag: "522-5c3cec70ecf29"
>     Accept-Ranges: bytes
>     Content-Length: 1314
>     Keep-Alive: timeout=5, max=100
>     Connection: Keep-Alive
>     Content-Type: image/svg+xml
>   $ wget -Sq https://melpa.org/packages/dash-badge.svg
>     HTTP/1.1 200 OK
>     Server: nginx
>     Date: Thu, 03 Jun 2021 14:28:05 GMT
>     Content-Type: image/svg+xml
>     Content-Length: 1165
>     Last-Modified: Thu, 03 Jun 2021 13:27:58 GMT
>     Connection: keep-alive
>     ETag: "60b8d8de-48d"
>     Cache-Control: no-cache
>     Accept-Ranges: bytes
>
> Is there someone here with access to GNU ELPA's Apache configuration
> that would make a similar change?  If not, where should this request go?

I was about to suggest something along those lines, but it was not clear
to me that "no-cache" is sufficient to disable the aggressive caching. I
assume Stefan can adjust the Apache setting to serve *.svg files with
"no-cache" from the packages directory.

Daniel



  reply	other threads:[~2021-06-03 14:51 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 [this message]
2021-06-03 15:16               ` Stefan Monnier
2021-06-03 16:07                 ` Jean Louis
2021-06-03 23:12                 ` chad
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=581b728a-6e84-ec2d-064f-de202f3fd5cd@daniel-mendler.de \
    --to=mail@daniel-mendler.de \
    --cc=contovob@tcd.ie \
    --cc=emacs-devel@gnu.org \
    --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).