Re: p6: Returning the freshest response

Ken Murchison <murch@andrew.cmu.edu> Fri, 29 March 2013 16:04 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 F0E5721F9433 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 29 Mar 2013 09:04:00 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.598
X-Spam-Level:
X-Spam-Status: No, score=-10.598 tagged_above=-999 required=5 tests=[AWL=-0.000, BAYES_00=-2.599, HTML_MESSAGE=0.001, 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 0jVH32U1YvHZ for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 29 Mar 2013 09:04:00 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 4F4D121F9423 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Fri, 29 Mar 2013 09:04:00 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1ULbm0-0000q4-18 for ietf-http-wg-dist@listhub.w3.org; Fri, 29 Mar 2013 16:03:24 +0000
Resent-Date: Fri, 29 Mar 2013 16:03:24 +0000
Resent-Message-Id: <E1ULbm0-0000q4-18@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <murch@andrew.cmu.edu>) id 1ULblj-0000of-TI for ietf-http-wg@listhub.w3.org; Fri, 29 Mar 2013 16:03:07 +0000
Received: from smtp.andrew.cmu.edu ([128.2.11.95]) by maggie.w3.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from <murch@andrew.cmu.edu>) id 1ULblg-0004Na-IX for ietf-http-wg@w3.org; Fri, 29 Mar 2013 16:03:07 +0000
Received: from [192.168.137.21] (cpe-76-180-197-142.buffalo.res.rr.com [76.180.197.142]) (user=murch mech=PLAIN (0 bits)) by smtp.andrew.cmu.edu (8.14.4/8.14.4) with ESMTP id r2TG2ap7013957 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 29 Mar 2013 12:02:37 -0400
Message-ID: <5155BB1C.1020703@andrew.cmu.edu>
Date: Fri, 29 Mar 2013 12:02:36 -0400
From: Ken Murchison <murch@andrew.cmu.edu>
Organization: Carnegie Mellon University
User-Agent: Thunderbird 2.0.0.23 (X11/20090825)
MIME-Version: 1.0
To: Martin Thomson <martin.thomson@gmail.com>
CC: HTTP Working Group <ietf-http-wg@w3.org>
References: <E56A5FA7-555D-4283-95A1-FD0030D4616A@mnot.net> <5155B23A.2050002@andrew.cmu.edu> <CABkgnnUc+CxTUfVvxsyJnG6pemkTpC9Z+3bQeaZbfnAdALZEtQ@mail.gmail.com>
In-Reply-To: <CABkgnnUc+CxTUfVvxsyJnG6pemkTpC9Z+3bQeaZbfnAdALZEtQ@mail.gmail.com>
Content-Type: multipart/alternative; boundary="------------000508070705010200030707"
X-PMX-Version: 5.5.9.388399, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2011.5.19.222118
X-SMTP-Spam-Clean: 8% ( HTML_NO_HTTP 0.1, SUPERLONG_LINE 0.05, BODYTEXTH_SIZE_10000_LESS 0, BODYTEXTP_SIZE_3000_LESS 0, BODY_SIZE_3000_3999 0, BODY_SIZE_5000_LESS 0, BODY_SIZE_7000_LESS 0, RDNS_GENERIC_POOLED 0, RDNS_POOLED 0, RDNS_RESIDENTIAL 0, RDNS_SUSP 0, RDNS_SUSP_GENERIC 0, RDNS_SUSP_SPECIFIC 0, __ANY_URI 0, __BAT_BOUNDARY 0, __BOUNCE_CHALLENGE_SUBJ 0, __BOUNCE_NDR_SUBJ_EXEMPT 0, __CT 0, __CTYPE_HAS_BOUNDARY 0, __CTYPE_MULTIPART 0, __CTYPE_MULTIPART_ALT 0, __HAS_HTML 0, __HAS_MSGID 0, __MIME_HTML 0, __MIME_VERSION 0, __MOZILLA_MSGID 0, __RATWARE_X_MAILER_CS_B 0, __RDNS_POOLED_2 0, __SANE_MSGID 0, __TAG_EXISTS_HTML 0, __TO_MALFORMED_2 0, __URI_NO_PATH 0, __URI_NO_WWW 0, __URI_NS , __USER_AGENT 0)
X-SMTP-Spam-Score: 8%
X-Scanned-By: MIMEDefang 2.60 on 128.2.11.95
Received-SPF: none client-ip=128.2.11.95; envelope-from=murch@andrew.cmu.edu; helo=smtp.andrew.cmu.edu
X-W3C-Hub-Spam-Status: No, score=-5.3
X-W3C-Hub-Spam-Report: AWL=-1.649, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_MED=-2.3, RP_MATCHES_RCVD=-1.303
X-W3C-Scan-Sig: maggie.w3.org 1ULblg-0004Na-IX 4939f43d7c09531056454a9860099261
X-Original-To: ietf-http-wg@w3.org
Subject: Re: p6: Returning the freshest response
Archived-At: <http://www.w3.org/mid/5155BB1C.1020703@andrew.cmu.edu>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/17176
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>

Martin Thomson wrote:
> On 29 March 2013 08:24, Ken Murchison <murch@andrew.cmu.edu> wrote:
>   
>> So the (my) question is, what can/should a cache do with multiple stored
>> responses in the absence of any Vary headers, as in your example above?  Can
>> the cache use proactive content negotiation headers provided in the request
>> to select the stored response that the client would prefer?  Or should the
>> cache not select a response and punt it to the origin server per Section
>> 4.2?
>>     
>
> An origin server is required to include a Vary header if conneg is
> possible, even if conneg isn't used.
>   
Hi Martin,

The current language in 
https://svn.tools.ietf.org/svn/wg/httpbis/draft-ietf-httpbis/latest/p2-semantics.html#proactive.negotiation 
(MAY) and 
https://svn.tools.ietf.org/svn/wg/httpbis/draft-ietf-httpbis/latest/p2-semantics.html#header.vary 
(SHOULD)
don't seem to make it a requirement.  However, the SHOULD certainly 
suggests best practice.

That notwithstanding, unless Mark's example omitted the Vary headers for 
brevity, my question still stands.

-- 
Kenneth Murchison
Principal Systems Software Engineer
Carnegie Mellon University