Re: [Tools-discuss] moving/marking rfcdiff to not get cached by cloudflare
Henrik Levkowetz <henrik@levkowetz.com> Thu, 02 January 2020 06:31 UTC
Return-Path: <henrik@levkowetz.com>
X-Original-To: tools-discuss@ietfa.amsl.com
Delivered-To: tools-discuss@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id B73B8120044 for <tools-discuss@ietfa.amsl.com>; Wed, 1 Jan 2020 22:31:53 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.899
X-Spam-Level:
X-Spam-Status: No, score=-6.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fpmIukPfgsOi for <tools-discuss@ietfa.amsl.com>; Wed, 1 Jan 2020 22:31:52 -0800 (PST)
Received: from zinfandel.tools.ietf.org (zinfandel.tools.ietf.org [64.170.98.42]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 1465D12000F for <tools-discuss@ietf.org>; Wed, 1 Jan 2020 22:31:52 -0800 (PST)
Received: from h-202-242.a357.priv.bahnhof.se ([158.174.202.242]:63107 helo=tannat.localdomain) by zinfandel.tools.ietf.org with esmtpsa (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <henrik@levkowetz.com>) id 1imu1N-00024L-Pp; Wed, 01 Jan 2020 22:31:51 -0800
To: Glen <glen@amsl.com>, tools-discuss@ietf.org
References: <4782.1577823296@localhost> <459fa2e8-5cf7-4ced-acf2-b5d612c311cc@www.fastmail.com> <CABL0ig5spbGL-7QPoGBPvmhiDh7rcxoU3Oph+HgiBBNJxWEDDQ@mail.gmail.com>
From: Henrik Levkowetz <henrik@levkowetz.com>
Message-ID: <0748f9f7-e919-dfae-361e-7c258bc5fcb0@levkowetz.com>
Date: Thu, 02 Jan 2020 07:31:32 +0100
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.8.0
MIME-Version: 1.0
In-Reply-To: <CABL0ig5spbGL-7QPoGBPvmhiDh7rcxoU3Oph+HgiBBNJxWEDDQ@mail.gmail.com>
Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="BIiLIWkJUoX89LK1g1gHM7lIw8Ex0cJGi"
X-SA-Exim-Connect-IP: 158.174.202.242
X-SA-Exim-Rcpt-To: tools-discuss@ietf.org, glen@amsl.com
X-SA-Exim-Mail-From: henrik@levkowetz.com
X-SA-Exim-Version: 4.2.1 (built Mon, 26 Dec 2011 16:24:06 +0000)
X-SA-Exim-Scanned: Yes (on zinfandel.tools.ietf.org)
X-Clacks-Overhead: GNU Terry Pratchett
Archived-At: <https://mailarchive.ietf.org/arch/msg/tools-discuss/eKHE9wn3JV4aHHE9Q2peG-aDTO8>
Subject: Re: [Tools-discuss] moving/marking rfcdiff to not get cached by cloudflare
X-BeenThere: tools-discuss@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: IETF Tools Discussion <tools-discuss.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/tools-discuss>, <mailto:tools-discuss-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/tools-discuss/>
List-Post: <mailto:tools-discuss@ietf.org>
List-Help: <mailto:tools-discuss-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tools-discuss>, <mailto:tools-discuss-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 02 Jan 2020 06:31:54 -0000
Inline: On 2020-01-02 03:41, Glen wrote: > On Wed, Jan 1, 2020 at 6:29 PM Martin Thomson <mt@lowentropy.net> wrote: >> On Wed, Jan 1, 2020, at 07:14, Michael Richardson wrote: >> > I construct URLs for rfcdiff, pointing it to my formatted txt file on github, >> > against my DT -XX.txt file. This is now being cached, I assume by >> > cloudflare. >> > Being able to Shift-Reload on the tab to validate the changes is really useful. >> > I wonder if we can someone how mark the results as uncacheable? >> > Or move rfcdiff to another name which isn't cached? or...? > > Hi Michael - > > Sorry if I'm missing a detail, but I'm not sure whether you're using > the IETF rfcdiff (www.ietf.org/rfcdiff) or whether you're using > Henrik's Tools servers (tools.ietf.org/rfcdiff) . I can of course > only speak for the former. If you're on www.ietf.org, I have reviewed > the Cloudflare configuration, and I can tell you that: > > www.ietf.org/rfcdiff/* > www.ietf.org/tools/* > > are both *NOT* cached. That is to say Cloudflare is configured to > always pass those things through to our server without caching or > storage. > >> Shift-Reload should mark the request as not drawing from cache. But the response I see doesn't have any validity information. That might mean that you might be getting heuristic caching. >> That said, after testing this on [1], the time spent waiting (almost 3s) seems to indicate that no cache is involved. A simple reload was enough to induce that delay, not the cache-busting shift-reload. In this case, that means setting Cache-Control: max-age=0 on the request, which seems to be enough. > > +1 > >> [1] https://tools.ietf.org/rfcdiff?url1=https://tools.ietf.org/id/draft-ietf-git-using-github.txt&url2=https://ietf-gitwg.github.io/using-github/draft-ietf-git-using-github.txt > > If, however, you are, as Martin is, using tools.ietf.org, then we'll > need to wait for Henrik to get back (I believe on the 6th) for him to > comment. tools.ietf.org is not behind a CDN, and there is no caching going on. > And, of course, the *sources* of your txt files might be cached on > their end - I have no idea, for example, what github might be doing... That could indeed be the issue. Henrik > Glen > -- > Glen Barney > IT Director > AMS (IETF Secretariat) > > ___________________________________________________________ > Tools-discuss mailing list > Tools-discuss@ietf.org > https://www.ietf.org/mailman/listinfo/tools-discuss > > Please report datatracker.ietf.org and mailarchive.ietf.org > bugs at http://tools.ietf.org/tools/ietfdb > or send email to datatracker-project@ietf.org > > Please report tools.ietf.org bugs at > http://tools.ietf.org/tools/issues > or send email to webmaster@tools.ietf.org >
- [Tools-discuss] moving/marking rfcdiff to not get… Michael Richardson
- Re: [Tools-discuss] moving/marking rfcdiff to not… Martin Thomson
- Re: [Tools-discuss] moving/marking rfcdiff to not… Glen
- Re: [Tools-discuss] moving/marking rfcdiff to not… Michael Richardson
- Re: [Tools-discuss] moving/marking rfcdiff to not… Michael Richardson
- Re: [Tools-discuss] moving/marking rfcdiff to not… Glen
- Re: [Tools-discuss] moving/marking rfcdiff to not… Henrik Levkowetz