From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Basil L. Contovounesios" Newsgroups: gmane.emacs.devel Subject: Re: [elpa] externals/marginalia 94fc7f0: README: Add ELPA badge Date: Thu, 03 Jun 2021 15:42:44 +0100 Message-ID: <87im2vovq3.fsf@tcd.ie> References: <20210530185719.10480.76043@vcs0.savannah.gnu.org> <20210530185720.C7394209BF@vcs0.savannah.gnu.org> <2b8bd070-845e-6b73-3f1c-209c044b1c5d@daniel-mendler.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31969"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Daniel Mendler , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Jun 03 16:43:54 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 1looZe-00083x-MR for ged-emacs-devel@m.gmane-mx.org; Thu, 03 Jun 2021 16:43:54 +0200 Original-Received: from localhost ([::1]:35446 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1looZd-0007lO-P6 for ged-emacs-devel@m.gmane-mx.org; Thu, 03 Jun 2021 10:43:53 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40380) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1looYg-0006Qn-Qp for emacs-devel@gnu.org; Thu, 03 Jun 2021 10:42:54 -0400 Original-Received: from mail-wm1-x330.google.com ([2a00:1450:4864:20::330]:51865) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1looYa-0001g3-HF for emacs-devel@gnu.org; Thu, 03 Jun 2021 10:42:54 -0400 Original-Received: by mail-wm1-x330.google.com with SMTP id r13so3577437wmq.1 for ; Thu, 03 Jun 2021 07:42:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd.ie; s=google21; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=CO3BkGgeDCl+9DFBe+8r9ZkMVTnOM5FOJFdGyBI9Shw=; b=M78G9H4ECcIl9JdsCEpADavUzpFSDF3ZL52QKsHUVwehIGfMyex3npjDKfmIrxmdvS Qvcaz64AFt8TS/bBrYyBt3J69kgw9Qp/61h7c5DdQ3XclLvwwtfky/J2BQSgPXRhkpYA zWoFg0927Za0iofLazuIK7VkBcD+TiX/chM6hCensIifTlG8SkCB8TdDFEPqyouPJUkS EFohs/yswKJNGlm/rBdakltQs5jLX2qe4bhsh12/+s2mcOa6GRswfe4h4u4+QVvna9Rq R5qiF1zBmpuLCW5fmVLIiuTfzTBFJSjrUxK0BVS2HuQz65sFSOZFfHvE6v66l8jRbLlW rG3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=CO3BkGgeDCl+9DFBe+8r9ZkMVTnOM5FOJFdGyBI9Shw=; b=IOjEJ6f1Fdadu796pTrXm7qzJvBu56SZsGEcMEKK5bFwq7sAdO0u0UtY+DdTdtDhtd FzxGkeFzJhDZufH2FC/r2KCMUd5WxtEuD8lxvCz6BkM7PUdqBUFoO+TuOIrYHvfXhlrW 1bTJ9tJnu7zO5xTILsgzXmoyYW1nADshEUaUOdqJvcPDZ9Xom9HNw1nWOtmSaloB/MyN hKnAny3RjBtRpvLr12WfEmZsrWpSQRVnk66N/ZqwzOcNDmar5J5idzmxSNdp6tO7skVa UnyOcl1nTjLggyNtmnv12cfdr3hoLqsib6O5m67jtG7bsKrr/tAH1CqNW05KZywjnq4N Ycpg== X-Gm-Message-State: AOAM530QShtNJPeQyc2yzomxIWTX6Lh9pq7enroiNV+WwamVX+bLuuF6 u4/QuFpaBxlp7oLejj/iOETKtA== X-Google-Smtp-Source: ABdhPJzZXksa7KIO5tGRJ0JFC+v4uskvySh4eAhtaRZBsl4fS8Du/fi18Vfh3QzFwJVXkLfKJAREqQ== X-Received: by 2002:a05:600c:35c3:: with SMTP id r3mr39026594wmq.23.1622731366508; Thu, 03 Jun 2021 07:42:46 -0700 (PDT) Original-Received: from localhost ([78.152.239.154]) by smtp.gmail.com with ESMTPSA id o9sm1761267wri.68.2021.06.03.07.42.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Jun 2021 07:42:45 -0700 (PDT) In-Reply-To: (Stefan Monnier's message of "Mon, 31 May 2021 10:27:56 -0400") Received-SPF: pass client-ip=2a00:1450:4864:20::330; envelope-from=contovob@tcd.ie; helo=mail-wm1-x330.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, 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." 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:270344 Archived-At: Stefan Monnier writes: > So we'd want the badge URL used in the `README.(md|org)`s such that the > badge indicates the latest version of the package? Yes, and thanks for setting up this nice eye candy. 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 Note that the GNU-devel ELPA version trails the corresponding MELPA one due to server-side caching. 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? Thanks, -- Basil