Re: [Technical Errata Reported] RFC7234 (5564)

Mark Nottingham <mnot@mnot.net> Fri, 30 November 2018 00:42 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 9EEE212D4E7 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 29 Nov 2018 16:42:27 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.999
X-Spam-Level:
X-Spam-Status: No, score=-2.999 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.001, 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=HPn/pCUj; dkim=pass (2048-bit key) header.d=messagingengine.com header.b=FnuAa7Ld
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 YUQzUJGfAFNb for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 29 Nov 2018 16:42:25 -0800 (PST)
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 B06D6124408 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 29 Nov 2018 16:42:25 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.89) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1gSWqy-0007PU-RD for ietf-http-wg-dist@listhub.w3.org; Fri, 30 Nov 2018 00:40:21 +0000
Resent-Date: Fri, 30 Nov 2018 00:40:20 +0000
Resent-Message-Id: <E1gSWqy-0007PU-RD@frink.w3.org>
Received: from titan.w3.org ([2603:400a:ffff:804:801e:34:0:4c]) by frink.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from <mnot@mnot.net>) id 1gSWqw-0007On-Ou for ietf-http-wg@listhub.w3.org; Fri, 30 Nov 2018 00:40:18 +0000
Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by titan.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from <mnot@mnot.net>) id 1gSWqt-0000z2-Bt for ietf-http-wg@w3.org; Fri, 30 Nov 2018 00:40:18 +0000
Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id AB9DC23529; Thu, 29 Nov 2018 19:39:54 -0500 (EST)
Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Thu, 29 Nov 2018 19:39:54 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mnot.net; h= content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; s=fm1; bh=B kkTtdYcsvN721oqMQm3cWbaCrcvptPNy4LrU4r4ujs=; b=HPn/pCUj2koHO1Tqn ITHArOn6i/CI8a7szHNNWteXcVIqN0SemoeNgSio4aHr+AvF0u9WLn4Ou0AQAGUC P59GbnQn6oUoOyC0D6jvV4iL4TXFIl9oH5Z16fjKXiX4YeNWbPdvZ6/j2+nVKDSH iQ+lcAUBvvgyYje4bxjX85XMrHG4D0kzkZsFep2+N9qEqWIHLNamTn5yMzboHsWn kHP5Lk0FXgQ5dprsU7lZMLtXaAs8EaXdyvogNxcevD4vJQ+YFowJyu6TgUM4V0QK p0JKHPQXEEoeCmIPvzqPZLrCNXm98u3qCv2Th0eOtQAYNRK5mRHQYiUIClgQ5sW+ Matfw==
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-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=BkkTtdYcsvN721oqMQm3cWbaCrcvptPNy4LrU4r4u js=; b=FnuAa7Ld3WifIl7ht/71dDq5PG78LNO6xOMmPHo+QQ0LysXFMD0KeEoNN WH9suhVwEATzCKTInbw+wSnFALNavMY8kQLCrm0FkJit2U9a3o5uGqRnDv9GDIA+ O6oxkj7Wjd3+nmrFg43UWaPhVy4mxDsL619xyErL5G4nrZCB3yW+1Jq2jVGcsWU2 +rBKRKueaFjCKY5gKaaeehpsONgG/cx3pnZPFrzldNmZlUzmp9lP0D1nq88EEUsx fuRX8zBohAGZWuMuKshqu3C+KZIqDN/Z25FDm6WemCLVpIk1FpHr0M1Km2RzBXa0 b/m6wuJbTp+fOARXF975beSMDtxIQ==
X-ME-Sender: <xms:14YAXG0rQH4RsHQw2-p6aDnJTDyeAlvANvQN2TFmn4urVUqRBfpMEg>
X-ME-Proxy: <xmx:2IYAXGLE__bGe8gyRj3O6VmroYrCQ_1HZL7k5f4hjFGVBlwnOLpECw> <xmx:2IYAXEI_cv15BP_9UMbtKbNS6LcILVAlw4YAE7WNDbvs02GGuT3b1g> <xmx:2IYAXA7lnLjZmnpPMFbDxkyl_Rmi-Yu-clQm29nKCAY-8GmRGgfyDA> <xmx:2IYAXPSaFDiRTNKI3-uVCjcTWTMy8HmzHm258-sVS25GBb2MJotQyw> <xmx:2IYAXErs6uAXVcTBm1r_-qjgE8k_Dp0K3DUHQni1NDBGAHi688lH0Q> <xmx:2oYAXDmsdo23oCZYOm0aMPgxOYeubEbNCgWTRMZS0aWQOFuX2cXOaA>
Received: from attitudadjuster.mnot.net (unknown [144.136.175.28]) by mail.messagingengine.com (Postfix) with ESMTPA id 8A4B0102EE; Thu, 29 Nov 2018 19:39:48 -0500 (EST)
Content-Type: text/plain; charset="us-ascii"
Mime-Version: 1.0 (Mac OS X Mail 12.0 \(3445.100.39\))
From: Mark Nottingham <mnot@mnot.net>
In-Reply-To: <1974749528.8925529.1543501295684@mail.yahoo.com>
Date: Fri, 30 Nov 2018 11:39:33 +1100
Cc: RFC Errata System <rfc-editor@rfc-editor.org>, Roy Fielding <fielding@gbiv.com>, "Julian F. Reschke" <julian.reschke@greenbytes.de>, ben@nostrum.com, Alexey Melnikov <aamelnikov@fastmail.fm>, Adam Roach <adam@nostrum.com>, Patrick McManus <patrick.ducksong@gmail.com>, tpauly@apple.com, ietf-http-wg@w3.org
Content-Transfer-Encoding: quoted-printable
Message-Id: <F8A3CC78-74B2-43AD-AF64-F84B84FDDE8B@mnot.net>
References: <20181127113743.1074FB80E09@rfc-editor.org> <D2FB3970-54B8-452D-9031-0F592370DB90@mnot.net> <1974749528.8925529.1543501295684@mail.yahoo.com>
To: Bruce Adams <tortoise_74@yahoo.co.uk>
X-Mailer: Apple Mail (2.3445.100.39)
X-W3C-Hub-Spam-Status: No, score=-6.5
X-W3C-Hub-Spam-Report: AWL=3.260, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-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: titan.w3.org 1gSWqt-0000z2-Bt 6b9e5a4eb5fb40d1cd62df1aec2f552b
X-Original-To: ietf-http-wg@w3.org
Subject: Re: [Technical Errata Reported] RFC7234 (5564)
Archived-At: <https://www.w3.org/mid/F8A3CC78-74B2-43AD-AF64-F84B84FDDE8B@mnot.net>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/36113
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 Bruce!

See:
  https://httpwg.org/specs/rfc7234.html#cache.control.extensions

Along with this text in sections 3 and 4:
  "Note that any of the requirements listed above can be overridden by a cache-control extension; see Section 5.2.3."

Cheers,


> On 30 Nov 2018, at 1:21 am, Bruce Adams <tortoise_74@yahoo.co.uk> wrote:
> 
> Hi,
>  
> That makes sense. I didn't realise extension could override, particularly in the case of a "MUST".
> For my own education where would I find this policy?
> 
> If I interpret this correctly I can for a ReST service return a stale document and
> "warning 111 response is stale" provided my response also includes "stale-while-revalidate"  from rfc5861.
> 
> Regards,
> 
> Bruec.
> 
> On Tuesday, November 27, 2018, 10:50:57 PM GMT, Mark Nottingham <mnot@mnot.net> wrote:
> 
> 
> REJECT. Extensions are explicitly allowed to override requirements, and making this a SHOULD would be too confusing (as many would read it as "optional").
> 
> 
> 
> > On 27 Nov 2018, at 10:37 pm, RFC Errata System <rfc-editor@rfc-editor.org> wrote:
> > 
> > The following errata report has been submitted for RFC7234,
> > "Hypertext Transfer Protocol (HTTP/1.1): Caching".
> > 
> > --------------------------------------
> > You may review the report below and at:
> > http://www.rfc-editor.org/errata/eid5564
> > 
> > --------------------------------------
> > Type: Technical
> > Reported by: Bruce Adams <tortoise_74@yahoo.co.uk>
> > 
> > Section: 4.2.4
> > 
> > Original Text
> > -------------
> > A cache MUST NOT send stale responses unless it is disconnected
> >  (i.e., it cannot contact the origin server or otherwise find a
> >  forward path) or doing so is explicitly allowed (e.g., by the
> >  max-stale request directive; see Section 5.2.1).
> > 
> > Corrected Text
> > --------------
> > A cache SHOULD NOT send stale responses unless it is disconnected
> >  (i.e., it cannot contact the origin server or otherwise find a
> >  forward path) or doing so is explicitly allowed (e.g., by the
> >  max-stale request directive; see Section 5.2.1).
> > 
> > A cache MAY send stale responses if a cache-control extension for
> > stale content such as "stale-while-revalidate" is used 
> > (see RFC5861).
> > 
> > Notes
> > -----
> > The original text seems to conflict with https://tools.ietf.org/html/rfc5861#section-3
> > 
> > 3.  The stale-while-revalidate Cache-Control Extension
> > 
> >  When present in an HTTP response, the stale-while-revalidate Cache-
> >  Control extension indicates that caches MAY serve the response in
> >  which it appears after it becomes stale, up to the indicated number
> >  of seconds.
> > 
> >    stale-while-revalidate = "stale-while-revalidate" "=" delta-seconds
> > 
> >  If a cached response is served stale due to the presence of this
> >  extension, the cache SHOULD attempt to revalidate it while still
> >  serving stale responses (i.e., without blocking).
> > 
> > See also https://stackoverflow.com/questions/53324538/rest-low-latency-how-should-i-reply-to-a-get-while-an-upload-is-pending
> > 
> > Instructions:
> > -------------
> > This erratum is currently posted as "Reported". If necessary, please
> > use "Reply All" to discuss whether it should be verified or
> > rejected. When a decision is reached, the verifying party  
> > can log in to change the status and edit the report, if necessary. 
> > 
> > --------------------------------------
> > RFC7234 (draft-ietf-httpbis-p6-cache-26)
> > --------------------------------------
> > Title              : Hypertext Transfer Protocol (HTTP/1.1): Caching
> > Publication Date    : June 2014
> > Author(s)          : R. Fielding, Ed., M. Nottingham, Ed., J. Reschke, Ed.
> > Category            : PROPOSED STANDARD
> > Source              : Hypertext Transfer Protocol Bis APP
> > Area                : Applications
> > Stream              : IETF
> > Verifying Party    : IESG
> 
> 
> --
> Mark Nottingham  https://www.mnot.net/
> 

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