Re: New Version Notification for draft-nottingham-cache-header-00.txt

Mark Nottingham <mnot@mnot.net> Sat, 08 September 2018 08:35 UTC

Return-Path: <ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id BBEA1129C6A for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sat, 8 Sep 2018 01:35:54 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.75
X-Spam-Level:
X-Spam-Status: No, score=-2.75 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.25, MAILING_LIST_MULTI=-1, 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=mnot.net header.b=aV/vAaez; dkim=pass (2048-bit key) header.d=messagingengine.com header.b=JQMEfJP1
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 t4vKLJFLTrOI for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sat, 8 Sep 2018 01:35:52 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [IPv6:2603:400a:ffff:804:801e:34:0:38]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 0BA0D126BED for <httpbisa-archive-bis2Juki@lists.ietf.org>; Sat, 8 Sep 2018 01:35:51 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.89) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1fyYgF-0004CU-17 for ietf-http-wg-dist@listhub.w3.org; Sat, 08 Sep 2018 08:33:23 +0000
Resent-Date: Sat, 08 Sep 2018 08:33:23 +0000
Resent-Message-Id: <E1fyYgF-0004CU-17@frink.w3.org>
Received: from mimas.w3.org ([2603:400a:ffff:804:801e:34:0:4f]) by frink.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from <mnot@mnot.net>) id 1fyYg9-0004Bq-Tv for ietf-http-wg@listhub.w3.org; Sat, 08 Sep 2018 08:33:17 +0000
Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by mimas.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from <mnot@mnot.net>) id 1fyYg7-0001eJ-LJ for ietf-http-wg@w3.org; Sat, 08 Sep 2018 08:33:17 +0000
Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 13E9521B55; Sat, 8 Sep 2018 04:32:55 -0400 (EDT)
Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Sat, 08 Sep 2018 04:32:55 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mnot.net; h=cc :content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; bh=yRF3q8yO0UOF31apK9Ntign9CE6fN XkVlawzZEtK/M4=; b=aV/vAaezuPAcRAo9c2705szMKQDqKT8e28RkwUexzPfUG KxW6lcCOZhCxLfo0RLUim7ahdskDcGXt3rslLx6pQRNa3C95GerhWA4u486hzmUr tLvL14SPpdCzjJd2by/xWoPWkD0K8ujgqdLbHj5jUTmeudO2TCa7EgQBnMQ3HNyW 3F4WO75yHpgDjiSd9h3nqL0hZ10PgWoIOkIfynqCudVsY5Td/ABjMpIBcl08fVjc sQtTh4A9fmfAOk5lYvUWIwz84tQlsyHjxXL2U3t0fjJCJn5qvp80jQeOTKmGLTdA zctMaY2db/MbJFAnR8iDMpAtLV8XVDYDGvLCDh12g==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=yRF3q8 yO0UOF31apK9Ntign9CE6fNXkVlawzZEtK/M4=; b=JQMEfJP1yK7snSPOcMbu3l zcqU9GTa/c3zCck0fnwxqH7L7BPyk57QhBAYUQL5gBt+kI8v5VaK8lfuH7Of2BgV f/sXf+IKINtdyWyXfxYomN8Wpq3+wpHqIFCubewWbKEEZGN1lsWQg6E0tqOSCw33 Z7OLsvouslxYTbOIDkTI+/dQG7630hLqBzVtbdN57j8Yt0+V24kbuf4r/1Ecvt/s RRtrzZ+ZWC/ZyRq318i4cVOr2rO5pxD3ghreHIxqZqXmETjZVZHWlbuHH70JvO1x WPbctYJ9tDFBHm1pRSn0gxjQW5dQBzZ5AncJLXLRZLBYL53P/Gj29+TqiSsfPZ/A ==
X-ME-Proxy: <xmx:NomTWwesN4V-y3S7pLtH4zND7PeihPYDeEtAGIXoX1rbS61m4oRgBg> <xmx:NomTW2FDtHFCt7bUpbNgh2OQeMOrHAFDzHkAfAgI2wxOTME9OrB7ew> <xmx:NomTW_Pwiuzt3HcFMFlAK65HHdv1jeqzeHqZgpoMdmAbnGFxAX81Iw> <xmx:NomTW-9TvDLN8q2q7aHo5q93d9rlrarbW0JaBOeoDYoFS9SE3bMkcg> <xmx:NomTW2LEwqyHYBbyt129JpLsX9-J8AR3YFQGmAZBP52Puw-g-Yxfhg> <xmx:N4mTW2XDAkndQQ_Je67OPTR30QJE4Kx3LRM4xW3Gq14bjSC7fezvvA>
X-ME-Sender: <xms:NomTW1VBZyJRhQuhKoQcItEK_eNaX-Vcp688cDYCO5Xjz4P36VmZ0w>
Received: from attitudadjuster.mnot.net (unknown [144.136.175.28]) by mail.messagingengine.com (Postfix) with ESMTPA id 346D110292; Sat, 8 Sep 2018 04:32:52 -0400 (EDT)
Content-Type: text/plain; charset="us-ascii"
Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\))
From: Mark Nottingham <mnot@mnot.net>
In-Reply-To: <72A3DEE8-E296-4CD9-B9F5-BD5A3E146FD5@gmail.com>
Date: Sat, 08 Sep 2018 18:32:51 +1000
Cc: HTTP Working Group <ietf-http-wg@w3.org>
Content-Transfer-Encoding: quoted-printable
Message-Id: <4BD3E1E5-433D-4A4A-9193-B8A9EF422DF5@mnot.net>
References: <153630251281.11674.4222139546682549239.idtracker@ietfa.amsl.com> <AEDC275A-8CE2-48F4-B08A-8791FB0443B1@mnot.net> <72A3DEE8-E296-4CD9-B9F5-BD5A3E146FD5@gmail.com>
To: Thomas Peterson <hidinginthebbc@gmail.com>
X-Mailer: Apple Mail (2.3445.9.1)
X-W3C-Hub-Spam-Status: No, score=-6.6
X-W3C-Hub-Spam-Report: AWL=3.091, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, W3C_AA=-1, W3C_DB=-1, W3C_IRA=-1, W3C_IRR=-3, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1fyYg7-0001eJ-LJ 145dbbdbf7ee4ef793a26c562686f1ac
X-Original-To: ietf-http-wg@w3.org
Subject: Re: New Version Notification for draft-nottingham-cache-header-00.txt
Archived-At: <https://www.w3.org/mid/4BD3E1E5-433D-4A4A-9193-B8A9EF422DF5@mnot.net>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/35895
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <https://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

Hi Thomas,

Thanks.

My initial thought is that HIT_STALE covers the case you describe (which sounds a lot like RFC5861 stale-while-revalidate).

I could see adding a parameter that indicates that the cache intends to update the entry asynchronously in the near future; would that work?

Cheers,


> On 8 Sep 2018, at 1:26 am, Thomas Peterson <hidinginthebbc@gmail.com> wrote:
> 
> I'm very much in favour of this, thanks Mark.
> 
> However, the draft doesn't expose a cache-action where a previous request is causing an update in still progress and is serving stale (for example, this is defined in nginx's UPDATING state). I think this should be added, perhaps as "HIT_REFRESH_UPDATING".
> 
> Also, no server I've found exposes a value that aligns with "ERROR", how might a 502/504 response code correlate to this, and should this draft specify these response codes be used as a 200 OK along with cache-action of "ERROR" doesn't make sense to me.
> 
> Regards
> 
> 
> 
> From: Mark Nottingham <mnot@mnot.net>
> Date: Friday, 7 September 2018 at 07:48
> To: HTTP Working Group <ietf-http-wg@w3.org>
> Subject: Fwd: New Version Notification for draft-nottingham-cache-header-00.txt
> Resent-From: <ietf-http-wg@w3.org>
> Resent-Date: Fri, 07 Sep 2018 06:45:18 +0000
> 
> FYI; IMO it's past time to standardise x-cache and have a real spec for it. 
> 
> This is a straw-man, based on a bit of research on existing implementations.
> 
> Pretty version at:
>   https://mnot.github.io/I-D/cache-header/
> 
> Comments? I think the primary audience here is proxy cache and CDN vendors, and their users.
> 
> Cheers,
> 
> 
> 
> 
> Begin forwarded message:
> 
> From: mailto:internet-drafts@ietf.org
> Subject: New Version Notification for draft-nottingham-cache-header-00.txt
> Date: 7 September 2018 at 4:41:52 pm AEST
> To: "Mark Nottingham" <mailto:mnot@mnot.net>
> 
> 
> A new version of I-D, draft-nottingham-cache-header-00.txt
> has been successfully submitted by Mark Nottingham and posted to the
> IETF repository.
> 
> Name:		draft-nottingham-cache-header
> Revision:	00
> Title:		The Cache HTTP Response Header
> Document date:	2018-09-07
> Group:		Individual Submission
> Pages:		7
> URL:            https://www.ietf.org/internet-drafts/draft-nottingham-cache-header-00.txt
> Status:         https://datatracker.ietf.org/doc/draft-nottingham-cache-header/
> Htmlized:       https://tools.ietf.org/html/draft-nottingham-cache-header-00
> Htmlized:       https://datatracker.ietf.org/doc/html/draft-nottingham-cache-header
> 
> 
> Abstract:
>   To aid debugging, HTTP caches often append headers to a response
>   detailing how they handled the request.  This specification codifies
>   that practice and updates it for HTTP's current caching model.
> 
> 
> 
> 
> Please note that it may take a couple of minutes from the time of submission
> until the htmlized version and diff are available at http://tools.ietf.org.
> 
> The IETF Secretariat
> 
> --
> Mark Nottingham   https://www.mnot.net/
> 
> 
> 

--
Mark Nottingham   https://www.mnot.net/