[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [elpa] externals/marginalia 94fc7f0: README: Add ELPA badge

From: Daniel Mendler
Subject: Re: [elpa] externals/marginalia 94fc7f0: README: Add ELPA badge
Date: Thu, 3 Jun 2021 16:51:53 +0200

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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]