Re: [apps-discuss] Review of draft-ietf-alto-protocol-11.txt

Richard Alimi <ralimi@google.com> Wed, 02 May 2012 17:50 UTC

Return-Path: <ralimi@google.com>
X-Original-To: apps-discuss@ietfa.amsl.com
Delivered-To: apps-discuss@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 87CC921F85C6 for <apps-discuss@ietfa.amsl.com>; Wed, 2 May 2012 10:50:13 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.977
X-Spam-Level:
X-Spam-Status: No, score=-102.977 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, RCVD_IN_DNSWL_LOW=-1, USER_IN_WHITELIST=-100]
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 hJkdWXSi2PHH for <apps-discuss@ietfa.amsl.com>; Wed, 2 May 2012 10:50:12 -0700 (PDT)
Received: from mail-lb0-f172.google.com (mail-lb0-f172.google.com [209.85.217.172]) by ietfa.amsl.com (Postfix) with ESMTP id 7751921F85C0 for <apps-discuss@ietf.org>; Wed, 2 May 2012 10:50:12 -0700 (PDT)
Received: by lbbgo11 with SMTP id go11so751587lbb.31 for <apps-discuss@ietf.org>; Wed, 02 May 2012 10:50:11 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding:x-system-of-record; bh=dKcbkuOf0gtcd1D83B+EaV97B9rCOdTK1q4E/uLOAv8=; b=g6ClM44rd4PaOgl4slFckFUlo+uIXIZhpnRYUk++ZCCnnCMPqj5tu/qejg7vYtndLF 4OtKUeeYemOcQ2xMBj2zMOaL/WIQLzE7XMmA0voroYtG3JwQeg5Uje9bUcgGWtrCaEiU 0UExi78k4WtHSPhh4GySKDyr5rjEcaUdOIZ8M6jJd1cSwF96J+3swJmymeQN/YBIVtvv fkqhMFC05u7tGUuhh7iBAEr4QA4Kj0KHQAef6P5/1i3Tkh+tHp/09At4DzHTqPAchAJK Kj83nyc5Db9OUOqYWNcWpI7NfgAnolIWTVH/R6VkG/wvopD/IVkr/H6iGGOZfyjTuZXF RbYg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding:x-system-of-record :x-gm-message-state; bh=dKcbkuOf0gtcd1D83B+EaV97B9rCOdTK1q4E/uLOAv8=; b=l9iDmRebkyNG814FZyKsUQ1wd+FxLTy7+0pPHFtX+wcmnw9f8tWL+OeVivZBoAv0lP ovxN72LZ0Lzw9dmAKFILgHdmWHZJ/Uujc5bLF9mEjR72NAzT9Vd3EXnTyT8hEVYY59wq ebSj0Z0aHvjT0EhBHlGMvjc+sFCFFrNO7pm0l4GkKu3tUtX/vJxaDuNKxCFw6iLNLzWg mOe/j2uLgH6Ofm4+/sQdrrCmbaif+9OmhkhZb5EP1zPjFI8V0celP9UCwaGMGUDmkWE3 NAo+4UyLmdajGI5tR3GD914/w2pig8tmTbBOUK3YWsqhTZQaNgLcT6nxaQrQ4VEzlsOd c4cQ==
Received: by 10.152.124.76 with SMTP id mg12mr21456516lab.6.1335981011494; Wed, 02 May 2012 10:50:11 -0700 (PDT)
Received: by 10.152.124.76 with SMTP id mg12mr21456505lab.6.1335981011333; Wed, 02 May 2012 10:50:11 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.112.134.97 with HTTP; Wed, 2 May 2012 10:49:40 -0700 (PDT)
In-Reply-To: <98BA299A-18E0-412C-A005-754F336E1620@niven-jenkins.co.uk>
References: <CA+9kkMB4nUayYO3q8ydj477jh9NM8oZyXAQ5k-NsRN=KHjb3cA@mail.gmail.com> <2DE7DDDA-6621-4E56-BD3D-1173833E672B@niven-jenkins.co.uk> <CA+9kkMApj1dPNn+0Uiz9iRPBhk3Px9kj-nP+Z+UGsjxoqY82eg@mail.gmail.com> <98BA299A-18E0-412C-A005-754F336E1620@niven-jenkins.co.uk>
From: Richard Alimi <ralimi@google.com>
Date: Wed, 02 May 2012 10:49:40 -0700
Message-ID: <CADOmCZXkF=Qc46x7+00KmB+y2q4Rm6xku2Q40YBQtsp4QeuqQQ@mail.gmail.com>
To: Ben Niven-Jenkins <ben@niven-jenkins.co.uk>
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: quoted-printable
X-System-Of-Record: true
X-Gm-Message-State: ALoCoQlqD/klio/+TOuJ/ZWt48Wd81J8SHZazwb7IZi+4DREidwnzhit9wBDWVTFpK3Npywhq9xzrlhZdCdBsLBXyYXM3ieYXp7w0qDsqdj3ed+MkNLiJVL7Eu9yydKv4OpwtB+qw8X4rhPBEDR7eCmGov1bPWgmEw==
X-Mailman-Approved-At: Thu, 03 May 2012 08:05:59 -0700
Cc: draft-ietf-alto-protocol.all@tools.ietf.org, apps-discuss@ietf.org
Subject: Re: [apps-discuss] Review of draft-ietf-alto-protocol-11.txt
X-BeenThere: apps-discuss@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: General discussion of application-layer protocols <apps-discuss.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/apps-discuss>, <mailto:apps-discuss-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/apps-discuss>
List-Post: <mailto:apps-discuss@ietf.org>
List-Help: <mailto:apps-discuss-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/apps-discuss>, <mailto:apps-discuss-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 02 May 2012 17:50:13 -0000

On Wed, May 2, 2012 at 10:39 AM, Ben Niven-Jenkins
<ben@niven-jenkins.co.uk> wrote:
>
> On 2 May 2012, at 17:28, Ted Hardie wrote:
>
>> On Wed, May 2, 2012 at 9:23 AM, Ben Niven-Jenkins
>> <ben@niven-jenkins.co.uk> wrote:
>>> Ted,
>>
>>> I do not believe that this is the case, from Section 6.5 of draft-ietf-httpbis-p2-semantics-19 (RFC2616 has similar text to the first paragraph):
>>>
>>>   Responses to POST requests are only cacheable when they include
>>>   explicit freshness information (see Section 2.3.1 of [Part6]).  A
>>>   cached POST response with a Content-Location header field (see
>>>   Section 6.7 of [Part3]) whose value is the effective Request URI MAY
>>>   be used to satisfy subsequent GET and HEAD requests.
>>>
>>>   Note that POST caching is not widely implemented.  However, the 303
>>>   (See Other) response can be used to direct the user agent to retrieve
>>>   a cacheable resource.
>>>
>>> Ben
>>
>> It is not the cacheability of the results of post request that I was
>> referring to, but
>> the cacheability of the results of a 303.
>
> Ah, I see. Yes I see your issue with the text now.
>
> I believe there is an implicit assumption on the part of the authors that in this model (receive a POST and return a 303) that the ALTO server could be doing some level of "ALTO-application level caching" to avoid repeating expensive queries by determining that a given POST would execute the same query as a previous POST and therefore rather than run the query again, just return a 303 to a resource on the ALTO server that contains the results of the previous (identical) query.
>

The word 'caching' was meant to apply to the response the ALTO Client
that actually contained the data it was looking for (that is, the
following GET).  An ALTO Server could also internally cache the
results to avoid repeated computation, but that was meant to be
implicit since this text was referring to the protocol messaging.

I understand Ted's point about the ambiguity in the text 'employ
caching for the response to a POST request'.  We can clean that up to
indicate that the caching is for the ALTO-level response (as returned
by the following GET) and not the response to the POST itself.

> But as I'm not an author I'll crawl back under my rock now.

No - come back! :)

Rich

>
> Ben
>
>>  See 10.3.4 of RFC 2616:
>>
>> The 303 response MUST NOT be cached, but the response to the second
>> (redirected) request might be cacheable.
>>
>> regards,
>>
>> Ted Hardie
>