
From nobody Wed Jan  1 18:29:16 2020
Return-Path: <mt@lowentropy.net>
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 D525F120046 for <tools-discuss@ietfa.amsl.com>; Wed,  1 Jan 2020 18:29:13 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.7
X-Spam-Level: 
X-Spam-Status: No, score=-2.7 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=lowentropy.net header.b=K2fCMQuR; dkim=pass (2048-bit key) header.d=messagingengine.com header.b=nN4nmeEs
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 yg-BFOjkrlys for <tools-discuss@ietfa.amsl.com>; Wed,  1 Jan 2020 18:29:12 -0800 (PST)
Received: from wout2-smtp.messagingengine.com (wout2-smtp.messagingengine.com [64.147.123.25]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 87F4912000F for <tools-discuss@ietf.org>; Wed,  1 Jan 2020 18:29:12 -0800 (PST)
Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id DDC8438A for <tools-discuss@ietf.org>; Wed,  1 Jan 2020 21:29:11 -0500 (EST)
Received: from imap2 ([10.202.2.52]) by compute1.internal (MEProxy); Wed, 01 Jan 2020 21:29:11 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lowentropy.net; h=mime-version:message-id:in-reply-to:references:date:from:to :subject:content-type; s=fm1; bh=Z3m6ymXAljH80FOquDd7/l/VQsXNpiB giRke9vbZZrI=; b=K2fCMQuRCcHCwHph7vdcfFNCZGdM49bBAG4ModldwEV3Q23 URZ9+BpBW2eXpc3E1frYzce02/OyUe5pv3Xbe1/umt4pFdDpemmPsYG9uUPryjFb /dEzfTWu5wBlpiuhtUEgWy1W/8IpakhvQ3aITMuFfsNV8y6ax3Jq2i9SSSpTQYhr uOubJgKLvHMFY3ZpanhcycWg55h12nyuSfJZ4ApTB3Cf0WrNYjKBXzVgokk+Ouql 1YiQ7J63upzV25qGzdxfCDnlKqQrhmb5z4Ku/4ioieSgxqPvm+AJOOJRFo/bnoPu kZrZ+46TNObCDowTXsNMVmfs5j3JZqvK9yHQIZQ==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=Z3m6ym XAljH80FOquDd7/l/VQsXNpiBgiRke9vbZZrI=; b=nN4nmeEs4UK0zY2cpyAzMA s9y+AIHW9x/wqZmcSUovLcbXnqPKjR7MUjb8LT+7pPFqYp+o651TeP5TG5Xc7azu b+jApTCicX2f53D2zt1SoeDxE6WZ+vHB/J2FnB9t2Xy2CDUHel0Ox6Dpr9Rm2BYk C7P7DUvs1rwJElEeRaosioX23AfvpCu1lqFCYBnn7Tn/MTNU8TIyrPwtTl1k1Cxp U11PyPGrGjhxOEp87o0QMJqGucd1XoTyHhmuUGPezNgK4iSFAwAeXk2IFg+oVI/A h8vZtwVptEBTy8vEWtBg3wwmwDgED8QYh+weO5LsC66ag8OeGNEtzLG2P4/wFEJw ==
X-ME-Sender: <xms:d1UNXlEiYQ8Wgg5p65aP98Q_fe5oU3xpRTFHE8xIMQLaB4me_v0lHA>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrvdegtddggedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefofgggkfgjfhffhffvufgtsehttd ertderreejnecuhfhrohhmpedfofgrrhhtihhnucfvhhhomhhsohhnfdcuoehmtheslhho figvnhhtrhhophihrdhnvghtqeenucffohhmrghinhepihgvthhfrdhorhhgnecurfgrrh grmhepmhgrihhlfhhrohhmpehmtheslhhofigvnhhtrhhophihrdhnvghtnecuvehluhhs thgvrhfuihiivgeptd
X-ME-Proxy: <xmx:d1UNXleIWBgDmvDm6lXVWdQdtgbfSntFSIu9GpWGIKcNNCY5WCbrjQ> <xmx:d1UNXshR7jRAPpAEuPQLPPH3mibfScoSKjtasYtcjS9iCLQk0nziFw> <xmx:d1UNXq5BmHtuAolF8XH1odFfqbgbA40JLc1OJGnGx51aUMEWXnyMLA> <xmx:d1UNXo5GT5pmRpvCzlgTS6lRUEqlkzIHf_MdqD9g6Oy1qUK-M40p9g>
Received: by mailuser.nyi.internal (Postfix, from userid 501) id 2A817E00AF; Wed,  1 Jan 2020 21:29:11 -0500 (EST)
X-Mailer: MessagingEngine.com Webmail Interface
User-Agent: Cyrus-JMAP/3.1.7-694-gd5bab98-fmstable-20191218v1
Mime-Version: 1.0
Message-Id: <459fa2e8-5cf7-4ced-acf2-b5d612c311cc@www.fastmail.com>
In-Reply-To: <4782.1577823296@localhost>
References: <4782.1577823296@localhost>
Date: Thu, 02 Jan 2020 13:28:52 +1100
From: "Martin Thomson" <mt@lowentropy.net>
To: tools-discuss@ietf.org
Content-Type: text/plain
Archived-At: <https://mailarchive.ietf.org/arch/msg/tools-discuss/IdjQRg2MWglRoVyEB0X17cVPofQ>
Subject: Re: [Tools-discuss]  =?utf-8?q?moving/marking_rfcdiff_to_not_get_cach?= =?utf-8?q?ed_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:29:14 -0000

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

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


From nobody Wed Jan  1 18:41:50 2020
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, 1 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 g=
ithub,
> > 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=3D0 on the request, which seems to be=
 enough.

+1

> [1] https://tools.ietf.org/rfcdiff?url1=3Dhttps://tools.ietf.org/id/draft=
-ietf-git-using-github.txt&url2=3Dhttps://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)


From nobody Wed Jan  1 19:52:21 2020
Return-Path: <mcr@sandelman.ca>
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 7E91C120047 for <tools-discuss@ietfa.amsl.com>; Wed,  1 Jan 2020 19:52:19 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.199
X-Spam-Level: 
X-Spam-Status: No, score=-4.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] 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 tTPd9XNXbZcq for <tools-discuss@ietfa.amsl.com>; Wed,  1 Jan 2020 19:52:17 -0800 (PST)
Received: from tuna.sandelman.ca (tuna.sandelman.ca [IPv6:2607:f0b0:f:3:216:3eff:fe7c:d1f3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 9453C12003E for <tools-discuss@ietf.org>; Wed,  1 Jan 2020 19:52:17 -0800 (PST)
Received: from sandelman.ca (obiwan.sandelman.ca [IPv6:2607:f0b0:f:2::247]) by tuna.sandelman.ca (Postfix) with ESMTP id 3B24F3897B; Wed,  1 Jan 2020 22:52:00 -0500 (EST)
Received: from localhost (localhost [IPv6:::1]) by sandelman.ca (Postfix) with ESMTP id BC9061258; Wed,  1 Jan 2020 22:52:15 -0500 (EST)
From: Michael Richardson <mcr@sandelman.ca>
To: "Martin Thomson" <mt@lowentropy.net>
cc: tools-discuss@ietf.org
In-Reply-To: <459fa2e8-5cf7-4ced-acf2-b5d612c311cc@www.fastmail.com>
References: <4782.1577823296@localhost> <459fa2e8-5cf7-4ced-acf2-b5d612c311cc@www.fastmail.com>
X-Mailer: MH-E 8.6; nmh 1.7+dev; GNU Emacs 24.5.1
X-Face: $\n1pF)h^`}$H>Hk{L"x@)JS7<%Az}5RyS@k9X%29-lHB$Ti.V>2bi.~ehC0; <'$9xN5Ub# z!G,p`nR&p7Fz@^UXIn156S8.~^@MJ*mMsD7=QFeq%AL4m<nPbLgmtKK-5dC@#:k
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature"
Date: Wed, 01 Jan 2020 22:52:15 -0500
Message-ID: <1755.1577937135@localhost>
Archived-At: <https://mailarchive.ietf.org/arch/msg/tools-discuss/5laUHJL4XJoZpp9Z7e6wfFpT4CQ>
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 03:52:20 -0000

--=-=-=
Content-Type: text/plain


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

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

...

    > 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

Since I'm using https://raw.githubusercontent.com/ I wonder if the problem is
that the underlying file is being cached?




--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEEbsyLEzg/qUTA43uogItw+93Q3WUFAl4NaO8ACgkQgItw+93Q
3WUOPAgAwIVRAasBldY6GXdEBHmXs7hmPUggir/GKiayJ67ElgWzd2jk7mXOSsIR
VRNLVMSLzI7uxGM2kDzun/9RLum9AwBoDWkRAEd0LKPRCsR1gM+xSDZIyxX/x5j0
jZh/br2j+Yz0q+nKjjdWqh19NJYhRKd4eGKkI8xmDhhulBkBBTLbkyWuqDGpMX9t
4T7wCcIhhLCD8PSx4IMnBVQBRWGZm+6/41hA9KufPELeUFz5ImN/Pa578mdWwbNy
G9d1YgXQPI2FeDSnOFIrSncP5ORMhG0uos5ITjKC7lWhGkj5mzaoYYQu8ZGQrCuG
gp+gdjg9Mps/Jl467DSG01Df9YKYew==
=p1tf
-----END PGP SIGNATURE-----
--=-=-=--


From nobody Wed Jan  1 19:53:18 2020
Return-Path: <mcr@sandelman.ca>
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 88B34120047 for <tools-discuss@ietfa.amsl.com>; Wed,  1 Jan 2020 19:53:17 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.199
X-Spam-Level: 
X-Spam-Status: No, score=-4.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] 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 Rp33jWM1YXBj for <tools-discuss@ietfa.amsl.com>; Wed,  1 Jan 2020 19:53:16 -0800 (PST)
Received: from tuna.sandelman.ca (tuna.sandelman.ca [209.87.249.19]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 5FE9512003E for <tools-discuss@ietf.org>; Wed,  1 Jan 2020 19:53:16 -0800 (PST)
Received: from sandelman.ca (obiwan.sandelman.ca [IPv6:2607:f0b0:f:2::247]) by tuna.sandelman.ca (Postfix) with ESMTP id 226113897B; Wed,  1 Jan 2020 22:53:00 -0500 (EST)
Received: from localhost (localhost [IPv6:::1]) by sandelman.ca (Postfix) with ESMTP id AB7F91258; Wed,  1 Jan 2020 22:53:15 -0500 (EST)
From: Michael Richardson <mcr@sandelman.ca>
To: "Martin Thomson" <mt@lowentropy.net>
cc: tools-discuss@ietf.org
In-Reply-To: <459fa2e8-5cf7-4ced-acf2-b5d612c311cc@www.fastmail.com>
References: <4782.1577823296@localhost> <459fa2e8-5cf7-4ced-acf2-b5d612c311cc@www.fastmail.com>
X-Mailer: MH-E 8.6; nmh 1.7+dev; GNU Emacs 24.5.1
X-Face: $\n1pF)h^`}$H>Hk{L"x@)JS7<%Az}5RyS@k9X%29-lHB$Ti.V>2bi.~ehC0; <'$9xN5Ub# z!G,p`nR&p7Fz@^UXIn156S8.~^@MJ*mMsD7=QFeq%AL4m<nPbLgmtKK-5dC@#:k
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-ID: <2002.1577937195.1@localhost>
Content-Transfer-Encoding: quoted-printable
Date: Wed, 01 Jan 2020 22:53:15 -0500
Message-ID: <2003.1577937195@localhost>
Archived-At: <https://mailarchive.ietf.org/arch/msg/tools-discuss/VBd_rbz2_qFTwFdwk9-iwD_mP2o>
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 03:53:18 -0000

Martin Thomson <mt@lowentropy.net> wrote:
    > [1]
    > https://tools.ietf.org/rfcdiff?url1=3Dhttps://tools.ietf.org/id/draf=
t-ietf-git-using-github.txt&url2=3Dhttps://ietf-gitwg.github.io/using-gith=
ub/draft-ietf-git-using-github.txt

Glen points out that you are using a different rfcdiff than I.
I will try that one next time.


From nobody Wed Jan  1 20:26:27 2020
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 E45AF12006D for <tools-discuss@ietfa.amsl.com>; Wed,  1 Jan 2020 20:26:25 -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 dYL0biIOIu-V for <tools-discuss@ietfa.amsl.com>; Wed,  1 Jan 2020 20:26:24 -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 A60EF120047 for <tools-discuss@ietf.org>; Wed,  1 Jan 2020 20:26:24 -0800 (PST)
Received: from mail.amsl.com (localhost [127.0.0.1]) by c8a.amsl.com (Postfix) with ESMTPS id 47065203E3D for <tools-discuss@ietf.org>; Wed,  1 Jan 2020 20:24:30 -0800 (PST)
Received: from mail-ot1-f51.google.com (mail-ot1-f51.google.com [209.85.210.51]) by c8a.amsl.com (Postfix) with ESMTPSA id 24491203E3C for <tools-discuss@ietf.org>; Wed,  1 Jan 2020 20:24:30 -0800 (PST)
Received: by mail-ot1-f51.google.com with SMTP id k14so55416902otn.4 for <tools-discuss@ietf.org>; Wed, 01 Jan 2020 20:26:24 -0800 (PST)
X-Gm-Message-State: APjAAAWxfDLfC0SZebsmNTv04CAI9T4/7T2qFs7OyAQgwmAX7fg22gEy EAbSh6jVPM+QQXg8ZFk+DrMwCi3EfS5OjCrxR08=
X-Google-Smtp-Source: APXvYqxEQhN21d+SfCs5d578iLELLOKZjWmzdpLrHbysvgFVu8zERnjTFhOwicRE/MG49iPKV0bD14/azdJnOvl1470=
X-Received: by 2002:a9d:784b:: with SMTP id c11mr85146021otm.246.1577939183932;  Wed, 01 Jan 2020 20:26:23 -0800 (PST)
MIME-Version: 1.0
References: <4782.1577823296@localhost> <459fa2e8-5cf7-4ced-acf2-b5d612c311cc@www.fastmail.com> <1755.1577937135@localhost>
In-Reply-To: <1755.1577937135@localhost>
From: Glen <glen@amsl.com>
Date: Wed, 1 Jan 2020 20:26:12 -0800
X-Gmail-Original-Message-ID: <CABL0ig5g7tmobw=ZSTYF2XWZgGZf6wrfBj8jjFZTVbRBe_=kBQ@mail.gmail.com>
Message-ID: <CABL0ig5g7tmobw=ZSTYF2XWZgGZf6wrfBj8jjFZTVbRBe_=kBQ@mail.gmail.com>
To: tools-discuss@ietf.org
Content-Type: text/plain; charset="UTF-8"
Archived-At: <https://mailarchive.ietf.org/arch/msg/tools-discuss/k4X36MsgxV2mNuquv9FsfrGb-xY>
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 04:26:26 -0000

On Wed, Jan 1, 2020 at 7:52 PM Michael Richardson <mcr@sandelman.ca> wrote:
> Since I'm using https://raw.githubusercontent.com/ I wonder if the problem is
> that the underlying file is being cached?

I'm sure you already did this, but just for those reading...

~> host raw.githubusercontent.com
raw.githubusercontent.com is an alias for github.map.fastly.net.
github.map.fastly.net has address 151.101.0.133
github.map.fastly.net has address 151.101.64.133
github.map.fastly.net has address 151.101.128.133
github.map.fastly.net has address 151.101.192.133

https://www.fastly.com/ seems - only at first glance - to be something
similar to a CDN, so I'd say that you could be exactly right here.

Glen


From nobody Wed Jan  1 22:31:55 2020
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, 2 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

This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--BIiLIWkJUoX89LK1g1gHM7lIw8Ex0cJGi
Content-Type: multipart/mixed; boundary="EfXwB3QgPM7hr0UbiFATaVs7UaInmOWQ2";
 protected-headers="v1"
From: Henrik Levkowetz <henrik@levkowetz.com>
To: Glen <glen@amsl.com>, tools-discuss@ietf.org
Message-ID: <0748f9f7-e919-dfae-361e-7c258bc5fcb0@levkowetz.com>
Subject: Re: [Tools-discuss] moving/marking rfcdiff to not get cached by
 cloudflare
References: <4782.1577823296@localhost>
 <459fa2e8-5cf7-4ced-acf2-b5d612c311cc@www.fastmail.com>
 <CABL0ig5spbGL-7QPoGBPvmhiDh7rcxoU3Oph+HgiBBNJxWEDDQ@mail.gmail.com>
In-Reply-To: <CABL0ig5spbGL-7QPoGBPvmhiDh7rcxoU3Oph+HgiBBNJxWEDDQ@mail.gmail.com>

--EfXwB3QgPM7hr0UbiFATaVs7UaInmOWQ2
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

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 o=
n 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 rea=
lly useful.
>> > I wonder if we can someone how mark the results as uncacheable?
>> > Or move rfcdiff to another name which isn't cached? or...?
>=20
> Hi Michael -
>=20
> 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:
>=20
> www.ietf.org/rfcdiff/*
> www.ietf.org/tools/*
>=20
> are both *NOT* cached.  That is to say Cloudflare is configured to
> always pass those things through to our server without caching or
> storage.
>=20
>> Shift-Reload should mark the request as not drawing from cache.  But t=
he 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 3=
s) seems to indicate that no cache is involved.  A simple reload was enou=
gh to induce that delay, not the cache-busting shift-reload.  In this cas=
e, that means setting Cache-Control: max-age=3D0 on the request, which se=
ems to be enough.
>=20
> +1
>=20
>> [1] https://tools.ietf.org/rfcdiff?url1=3Dhttps://tools.ietf.org/id/dr=
aft-ietf-git-using-github.txt&url2=3Dhttps://ietf-gitwg.github.io/using-g=
ithub/draft-ietf-git-using-github.txt
>=20
> 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)
>=20
> ___________________________________________________________
> Tools-discuss mailing list
> Tools-discuss@ietf.org
> https://www.ietf.org/mailman/listinfo/tools-discuss
>=20
> 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
>=20
> Please report tools.ietf.org bugs at
> http://tools.ietf.org/tools/issues
> or send email to webmaster@tools.ietf.org
>=20


--EfXwB3QgPM7hr0UbiFATaVs7UaInmOWQ2--

--BIiLIWkJUoX89LK1g1gHM7lIw8Ex0cJGi
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEifjc5+rnL1MJBcZSTptXS4+7FxoFAl4NjkQACgkQTptXS4+7
Fxo0+Q//cm/DwXbNpC2R5l/xwVYtWf91Gkgr5vnhUGtwc4xBEUQYFbKjAnE3lFGs
F511U68XeGlw0ZSBy+mu7og5sE8Vdm5xGrTEo977VN9cnl4OWvGYR20/l2YZZ5ql
1YRqg2C6vcA6tb5yYAHQnksWRwqOewZooplSFoNgs4yh7VOIm9gs3ydNfWow47aZ
aVZ6i+32HLjq1uju2QA/AgLx7vU4pcDungsbPCRHpJdWIZtGwEcZw9RzdQN2ugKX
vOc2O9ja3wcDWR9Av/wJjZT/6LWhsVOaEn63ySd8UD33D2Vap3+82OvswjIiqptL
5V5ivCD3A+E5XPSA1s6Y9BEGJZOyAEnmvIooVXY4dIL9c2lh3avdag/GyQPmUSnq
J7AeEU1LiOr2yZ78xY92wWb+bgTWLqUIub5Tk7/eDyE+wDKvFXD6D/BJo4H0WOGA
9H86WZ1SdbILz5RBOwfk4EctMhCRJH+/3qAMy1mxupe4/favF0n4s0I3pFRzHdAo
mHt69o4UZ8AIrGfZ3z6sTshwn+ksuA9pvkQf+N0sBuSpjA5IV2X38mZHbNShA7C+
sdd1wgOU+vpA3AjpRYtV1PCpH8q47XtliT3R74v71GorFR0kVG/s4stYgKYHh72U
AGH8ySwpGjWBc2bmdFIyz90S21d9NCYEi35pixJLZyKIIhqNpMc=
=CSV4
-----END PGP SIGNATURE-----

--BIiLIWkJUoX89LK1g1gHM7lIw8Ex0cJGi--

