Re: p6: Returning the freshest response

Martin Thomson <martin.thomson@gmail.com> Mon, 01 April 2013 15:56 UTC

Return-Path: <ietf-http-wg-request@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 97C5A11E80AE for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 1 Apr 2013 08:56:42 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.599
X-Spam-Level:
X-Spam-Status: No, score=-10.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pEbIq3Wm1kgs for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 1 Apr 2013 08:56:42 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 009C021F8EB2 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Mon, 1 Apr 2013 08:56:41 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1UMh58-0006tc-64 for ietf-http-wg-dist@listhub.w3.org; Mon, 01 Apr 2013 15:55:38 +0000
Resent-Date: Mon, 01 Apr 2013 15:55:38 +0000
Resent-Message-Id: <E1UMh58-0006tc-64@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <martin.thomson@gmail.com>) id 1UMh56-0006so-J0 for ietf-http-wg@listhub.w3.org; Mon, 01 Apr 2013 15:55:36 +0000
Received: from mail-we0-f174.google.com ([74.125.82.174]) by lisa.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <martin.thomson@gmail.com>) id 1UMh55-0007Kf-Kk for ietf-http-wg@w3.org; Mon, 01 Apr 2013 15:55:36 +0000
Received: by mail-we0-f174.google.com with SMTP id u12so1847719wey.19 for <ietf-http-wg@w3.org>; Mon, 01 Apr 2013 08:55:09 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=t8n4RpuxWwBJe5casrsi6wbKySE7P3xkLI7DczepZvY=; b=t+QEtzlAAQyAwPSHL+0nN6afsiuufoBWPMIe4R+HirGD2tAXuy0qA9TzblqLGLBuf5 RWugvG362Ab3/N4leue55KGtyzqWyWvNwexJn6JEjPXvW9UtjE2a5xOqTLPPssoTPKRP CtS2yQW0KCmHo5igr83TSaDZ0gCgHwS7iUozgYdjM+miocZ9tmH7MvqEt8s6LdyUA/Wo EEppz22lPLfspOsQlkmECsz4gZGHd3eMKUvZ9sLwtR9qf464nEbt0GuEGlJ7awxLVxiX iKeIPkjo5wYPXuwd6FIlvpteYjR1QIR6zWSNEV428KpovtZ8enNev7i0y5as7Xh6laBZ QBDw==
MIME-Version: 1.0
X-Received: by 10.194.119.200 with SMTP id kw8mr16297853wjb.31.1364831709500; Mon, 01 Apr 2013 08:55:09 -0700 (PDT)
Received: by 10.194.41.35 with HTTP; Mon, 1 Apr 2013 08:55:09 -0700 (PDT)
In-Reply-To: <51578395.6070800@treenet.co.nz>
References: <E56A5FA7-555D-4283-95A1-FD0030D4616A@mnot.net> <CABkgnnXbDfXN1KA-AfHcW=macw44hK346z0UuYMZYx8OXBZv4g@mail.gmail.com> <51578395.6070800@treenet.co.nz>
Date: Mon, 01 Apr 2013 08:55:09 -0700
Message-ID: <CABkgnnW6KtaLizPYi8O_gBq7jHpW9QGnZ+YxwNk96R2OMee6eA@mail.gmail.com>
From: Martin Thomson <martin.thomson@gmail.com>
To: Amos Jeffries <squid3@treenet.co.nz>
Cc: HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: text/plain; charset="UTF-8"
Received-SPF: pass client-ip=74.125.82.174; envelope-from=martin.thomson@gmail.com; helo=mail-we0-f174.google.com
X-W3C-Hub-Spam-Status: No, score=-3.5
X-W3C-Hub-Spam-Report: AWL=-2.677, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001
X-W3C-Scan-Sig: lisa.w3.org 1UMh55-0007Kf-Kk 48ba9234c301090fde04a1cee767a55c
X-Original-To: ietf-http-wg@w3.org
Subject: Re: p6: Returning the freshest response
Archived-At: <http://www.w3.org/mid/CABkgnnW6KtaLizPYi8O_gBq7jHpW9QGnZ+YxwNk96R2OMee6eA@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/17188
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>

Rather than "eliminate unwanted responses", because in Mark's example,
both were acceptable with different qvalues, how about "select
preferred responses".

On 30 March 2013 17:30, Amos Jeffries <squid3@treenet.co.nz> wrote:
> On 30/03/2013 4:47 a.m., Martin Thomson wrote:
>>
>> On 28 March 2013 20:10, Mark Nottingham <mnot@mnot.net> wrote:
>>>
>>> """
>>> If multiple selected responses are available, the cache will need to
>>> choose one to use. If a selecting header has a known mechanism for doing so
>>> (e.g., qvalues on Accept and similar request headers), it MAY be used to
>>> select one; otherwise, the most recent response (as determined by the Date
>>> header field) is used, as per Section 4.
>>> """
>>
>> This seems good.  The "it" in "it MAY be used to select one" is
>> perhaps ambiguous, but I don't see how to fix it without making it
>> even harder to parse :)
>>
>
> Perhapse this is a bit better?
>
> "
>
> If multiple selected responses are available, the cache will need to choose
> one to use. When a selecting header has a known mechanism for doing so
> (e.g., qvalues on Accept and similar request headers), that mechanism SHOULD
> be used to eliminate unwanted responses; of the remainder, the most recent
> response (as determined by the Date header field) is used, as per Section 4.
>
> "
>
> Making it clear that Date mechanism still applies, but only after the
> negotiation filtering has been done. AFAIK that is how it always gets done
> in practice anyway.
>
> Amos
>
>