From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Daniel Mendler Newsgroups: gmane.emacs.devel Subject: Re: [elpa] externals/marginalia 94fc7f0: README: Add ELPA badge Date: Thu, 3 Jun 2021 16:51:53 +0200 Message-ID: <581b728a-6e84-ec2d-064f-de202f3fd5cd@daniel-mendler.de> References: <20210530185719.10480.76043@vcs0.savannah.gnu.org> <20210530185720.C7394209BF@vcs0.savannah.gnu.org> <2b8bd070-845e-6b73-3f1c-209c044b1c5d@daniel-mendler.de> <87im2vovq3.fsf@tcd.ie> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6228"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: "Basil L. Contovounesios" , Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Jun 03 16:53:38 2021 Return-path: 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 ) id 1looj4-0001RR-2p for ged-emacs-devel@m.gmane-mx.org; Thu, 03 Jun 2021 16:53:38 +0200 Original-Received: from localhost ([::1]:52918 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1looj3-0005Sp-3z for ged-emacs-devel@m.gmane-mx.org; Thu, 03 Jun 2021 10:53:37 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43952) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1loohX-00033y-LG for emacs-devel@gnu.org; Thu, 03 Jun 2021 10:52:03 -0400 Original-Received: from server.qxqx.de ([2a01:4f8:121:346::180]:46021 helo=mail.qxqx.de) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1loohT-0008Bh-3H for emacs-devel@gnu.org; Thu, 03 Jun 2021 10:52:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=qxqx.de; s=mail1392553390; h=Content-Transfer-Encoding:Content-Type:In-Reply-To: MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=VAh7J25acVFO7ZNhgKh2Jhvb6vN1Jr+O0ZNqxOHRFwg=; b=TJwKiIj0olORX1RNcOCMSvFBqr CLrl9dIg7v6ZFmEB0v7ocM3s1w85PkV0j9sQd7p5ewHyxFfxv+i9r5MgVqQYSrhiYvWjwLBXxkoOG 5CGF0mdSZ3VD4gaJ3e+Sl/JnVkmovDErNFCe0p6JSJU+ri6uRb7QWdK4IRXy1lpQic6w=; In-Reply-To: <87im2vovq3.fsf@tcd.ie> Content-Language: en-US Received-SPF: pass client-ip=2a01:4f8:121:346::180; envelope-from=mail@daniel-mendler.de; helo=mail.qxqx.de X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_PASS=-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." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:270347 Archived-At: 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