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

"Martin Thomson" <mt@lowentropy.net> Thu, 02 January 2020 02:29 UTC

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