Re: ID for Immutable

Patrick McManus <mcmanus@ducksong.com> Thu, 27 October 2016 01:33 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 D063112960A for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 26 Oct 2016 18:33:49 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.851
X-Spam-Level:
X-Spam-Status: No, score=-6.851 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-0.431, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=sendgrid.me
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 VSR1rxKfy9RT for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 26 Oct 2016 18:33:47 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 24F2B1295D6 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 26 Oct 2016 18:33:46 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1bzZVY-0007Ct-8y for ietf-http-wg-dist@listhub.w3.org; Thu, 27 Oct 2016 01:29:28 +0000
Resent-Date: Thu, 27 Oct 2016 01:29:28 +0000
Resent-Message-Id: <E1bzZVY-0007Ct-8y@frink.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <bounces+1568871-208f-ietf-http-wg=w3.org@sendgrid.net>) id 1bzZVT-0007BC-94 for ietf-http-wg@listhub.w3.org; Thu, 27 Oct 2016 01:29:23 +0000
Received: from o1.7n.fshared.sendgrid.net ([167.89.55.7]) by titan.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <bounces+1568871-208f-ietf-http-wg=w3.org@sendgrid.net>) id 1bzZVJ-0008Pu-Hg for ietf-http-wg@w3.org; Thu, 27 Oct 2016 01:29:18 +0000
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sendgrid.me; h=mime-version:in-reply-to:references:from:subject:to:cc:content-type; s=smtpapi; bh=VA/QaM7ZQ/DVoSjbl2y9q0kuwsE=; b=hezJ8wG6IxTUO0wd0/ eegvWQQM0LyWseLryXEdAlvStsEmyrfpNWfESSWlzE5DJQ6d63rLl6UIYd6dlePK BjPk/P4Ut49MDibsFq+UNZmFuvGLqXSeH2+FBriu4UOmipu3RrFjM9pk0IOR7gBV 9AZoyJEnKSqt1RAvWt8ZOME3o=
Received: by filter0170p1las1.sendgrid.net with SMTP id filter0170p1las1-23496-5811584D-49 2016-10-27 01:28:45.718495692 +0000 UTC
Received: from mail-oi0-f54.google.com (mail-oi0-f54.google.com [209.85.218.54]) by ismtpd0013p1las1.sendgrid.net (SG) with ESMTP id -Hcn4WKKQOSkLRqZE_XPGg for <ietf-http-wg@w3.org>; Thu, 27 Oct 2016 01:28:45.570 +0000 (UTC)
Received: by mail-oi0-f54.google.com with SMTP id y2so24580828oie.0 for <ietf-http-wg@w3.org>; Wed, 26 Oct 2016 18:28:45 -0700 (PDT)
X-Gm-Message-State: ABUngve3ySYFr5HqsJXhcuL0iosaDz0yOsF8l+VjJaAzl3vx3m3W3hvFehPmpp1Bw6vQEmOawTzVCXyX1IgJBg==
X-Received: by 10.36.43.143 with SMTP id h137mr4987823ita.47.1477531724749; Wed, 26 Oct 2016 18:28:44 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.64.228.236 with HTTP; Wed, 26 Oct 2016 18:28:44 -0700 (PDT)
In-Reply-To: <f5bd0a86-57e2-7d6c-09a7-86d6a8639ce0@treenet.co.nz>
References: <CAOdDvNqam930_0eA1p3yHW+xDdOm0AAMKvVKe6xwNwm1itpRpQ@mail.gmail.com> <f5bd0a86-57e2-7d6c-09a7-86d6a8639ce0@treenet.co.nz>
From: Patrick McManus <mcmanus@ducksong.com>
Date: Wed, 26 Oct 2016 21:28:44 -0400
X-Gmail-Original-Message-ID: <CAOdDvNrua_-RJfNz-+i1gN2tBH8wGXzGGGhL1MeLrsPqnAM0JQ@mail.gmail.com>
Message-ID: <CAOdDvNrua_-RJfNz-+i1gN2tBH8wGXzGGGhL1MeLrsPqnAM0JQ@mail.gmail.com>
To: Amos Jeffries <squid3@treenet.co.nz>
Cc: HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary="001a1147416a992548053fcea9ea"
X-SG-EID: YLWet4rakcOTMHWvPPwWbcsiUJbN1FCn0PHYd/Uujh7pRk2ySaCQgP1wxFnJMy1k2qE67e23EQIzQL FCl8ipiVInLoCW+sjX+apuh2YnBUs6I0cm1+V2ZzGqjXgGIJJAACF4dUXcjAUbuULNPTKw/QwlX1JW xvz8CglJhvvAqCpQ8O85s/IzdZfBq1pBOFMfEox3I9x6vUjMGDjyVUCNnRjV1AmDOtEIA+9x8Y70tg A=
Received-SPF: pass client-ip=167.89.55.7; envelope-from=bounces+1568871-208f-ietf-http-wg=w3.org@sendgrid.net; helo=o1.7n.fshared.sendgrid.net
X-W3C-Hub-Spam-Status: No, score=-5.7
X-W3C-Hub-Spam-Report: BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-1.339, SPF_PASS=-0.001, W3C_AA=-1, W3C_IRA=-1, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1bzZVJ-0008Pu-Hg 9ab549d58d36f2745f017265530272ff
X-Original-To: ietf-http-wg@w3.org
Subject: Re: ID for Immutable
Archived-At: <http://www.w3.org/mid/CAOdDvNrua_-RJfNz-+i1gN2tBH8wGXzGGGhL1MeLrsPqnAM0JQ@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/32683
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: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

hey amos - thanks for the thoughtful reply. Let's work through these and
I'll incorporate it into a -01

On Wed, Oct 26, 2016 at 7:36 PM, Amos Jeffries <squid3@treenet.co.nz> wrote:

>
> This control seems like it will also be useful for proxy caches to
> prevent relaying the same revalidations from older clients that don't
> support the control.
>
> However the draft does not mention any proxy handling.
>
> * does it override must-revalidate etc on the stored response?
>  - what about proxy-revalidate?
>

my understanding is that must-revalidate and proxy-revalidate only apply to
stale responses. immutable only applies to fresh responses - therefore I
don't think it has any impact on *-revalidate handling.


>
> * does it override a client request max-age=0 and/or request no-cache?
>  - the stated intention implies that it does.
>
>
I think a request with no-cache means don't use the cache - so any
directives in the cache including immutable are irrelevant. (the draft
should say this about immutable). I wouldn't think requests bearing
no-cache are using revalidations anywhere along the chain - this is
normally the mechanism afaik used to correct corruption.

max-age=0 is messy, but I think OK, for a proxy cache to apply the
immutable logic to its stored fresh response. The alternative is really
just to revalidate it, but the meaning of immutable is that the
revalidation is going to return 304 during the freshness lifetime.

You would need to make sure not to send a Age > 0 in the response.


> * assuming immutable overrides those client reload signals; is the proxy
> supposed to deliver a 200, 304 or 4xx to clients sending max-age=0 ?
>
>
I don't think immutable impacts that much. The proxy has used immutable to
auto-revalidate its stored response.. whether it returns that to the
user-agent as a 200 or 304 I would assume would depend on whether the
user-agent made a conditional request.


> * how does immutable interact with the 'must not send on re-use' headers?
>  - ie. no-cache="Set-Cookie", private="Set-Cookie" and similar cases ?
>

you're going to have to walk me through what you're thinking here because
I'm not immediately seeing the relevance. Immutable allows a client
(including a proxy) that is about to make a conditional request for a fresh
stored response to know that it is going to receive a 304 for that before
doing so and therefore avoid the transaction if it chooses to. Are you
suggesting that the resource varies by cookie or somesuch? I would think
that would be taken into account in the general logic of "do I have a fresh
resource for this request" logic.

wdyt?