Re: [Tools-discuss] moving/marking rfcdiff to not get cached by cloudflare

Glen <glen@amsl.com> Thu, 02 January 2020 02:41 UTC

Return-Path: <glen@amsl.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 54553120047 for <tools-discuss@ietfa.amsl.com>; Wed, 1 Jan 2020 18:41:49 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -104.199
X-Spam-Level:
X-Spam-Status: No, score=-104.199 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, USER_IN_WHITELIST=-100] 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 4JGdMh79r-II for <tools-discuss@ietfa.amsl.com>; Wed, 1 Jan 2020 18:41:46 -0800 (PST)
Received: from mail.amsl.com (c8a.amsl.com [4.31.198.40]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 9EAD6120046 for <tools-discuss@ietf.org>; Wed, 1 Jan 2020 18:41:46 -0800 (PST)
Received: from mail.amsl.com (localhost [127.0.0.1]) by c8a.amsl.com (Postfix) with ESMTPS id 07EBB203D7E for <tools-discuss@ietf.org>; Wed, 1 Jan 2020 18:39:53 -0800 (PST)
Received: from mail-ot1-f43.google.com (mail-ot1-f43.google.com [209.85.210.43]) by c8a.amsl.com (Postfix) with ESMTPSA id D8C37203D7D for <tools-discuss@ietf.org>; Wed, 1 Jan 2020 18:39:52 -0800 (PST)
Received: by mail-ot1-f43.google.com with SMTP id k16so50570539otb.2 for <tools-discuss@ietf.org>; Wed, 01 Jan 2020 18:41:46 -0800 (PST)
X-Gm-Message-State: APjAAAV1CpykZW1q19MfGlTJL3eA07qM/HqsGb+xBwONWzAftzP8wzLL Yvh3iZIzQkBa96VyRrqHM59uur895KxQ9jt7bxc=
X-Google-Smtp-Source: APXvYqy8nlpYWdY5ZV2CHCtlR077QHWqZFwNeZJyxVcH8lpA1e4oajiB1Dsn9MJkMuomAn6QpBjsKqjwJ1co6bYEfLI=
X-Received: by 2002:a9d:750b:: with SMTP id r11mr85787607otk.209.1577932905834; Wed, 01 Jan 2020 18:41:45 -0800 (PST)
MIME-Version: 1.0
References: <4782.1577823296@localhost> <459fa2e8-5cf7-4ced-acf2-b5d612c311cc@www.fastmail.com>
In-Reply-To: <459fa2e8-5cf7-4ced-acf2-b5d612c311cc@www.fastmail.com>
From: Glen <glen@amsl.com>
Date: Wed, 01 Jan 2020 18:41:34 -0800
X-Gmail-Original-Message-ID: <CABL0ig5spbGL-7QPoGBPvmhiDh7rcxoU3Oph+HgiBBNJxWEDDQ@mail.gmail.com>
Message-ID: <CABL0ig5spbGL-7QPoGBPvmhiDh7rcxoU3Oph+HgiBBNJxWEDDQ@mail.gmail.com>
To: tools-discuss@ietf.org
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Archived-At: <https://mailarchive.ietf.org/arch/msg/tools-discuss/7qWN9llKvkuetS4lb7fQIT568KQ>
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 02:41:49 -0000

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.

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...

Glen
--
Glen Barney
IT Director
AMS (IETF Secretariat)