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

Ben Niven-Jenkins <ben@niven-jenkins.co.uk> Wed, 02 May 2012 16:24 UTC

Return-Path: <ben@niven-jenkins.co.uk>
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 638E421F861F for <apps-discuss@ietfa.amsl.com>; Wed, 2 May 2012 09:24:08 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -103.232
X-Spam-Level:
X-Spam-Status: No, score=-103.232 tagged_above=-999 required=5 tests=[AWL=-0.633, BAYES_00=-2.599, 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 tn9tJbSUhPqr for <apps-discuss@ietfa.amsl.com>; Wed, 2 May 2012 09:24:07 -0700 (PDT)
Received: from mailex.mailcore.me (mailex.mailcore.me [94.136.40.62]) by ietfa.amsl.com (Postfix) with ESMTP id C204921F8617 for <apps-discuss@ietf.org>; Wed, 2 May 2012 09:24:07 -0700 (PDT)
Received: from [81.134.152.4] (helo=xxx.corp.velocix.com) by mail5.atlas.pipex.net with esmtpa (Exim 4.71) (envelope-from <ben@niven-jenkins.co.uk>) id 1SPcLN-00005f-Ah; Wed, 02 May 2012 17:23:57 +0100
Mime-Version: 1.0 (Apple Message framework v1084)
Content-Type: text/plain; charset="us-ascii"
From: Ben Niven-Jenkins <ben@niven-jenkins.co.uk>
In-Reply-To: <CA+9kkMB4nUayYO3q8ydj477jh9NM8oZyXAQ5k-NsRN=KHjb3cA@mail.gmail.com>
Date: Wed, 02 May 2012 17:23:54 +0100
Content-Transfer-Encoding: quoted-printable
Message-Id: <2DE7DDDA-6621-4E56-BD3D-1173833E672B@niven-jenkins.co.uk>
References: <CA+9kkMB4nUayYO3q8ydj477jh9NM8oZyXAQ5k-NsRN=KHjb3cA@mail.gmail.com>
To: Ted Hardie <ted.ietf@gmail.com>
X-Mailer: Apple Mail (2.1084)
X-Mailcore-Auth: 9600544
X-Mailcore-Domain: 172912
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 16:24:08 -0000

Ted,
On 26 Apr 2012, at 22:40, Ted Hardie wrote:
> In section 7.2.2, the document says:
> 
>   "Note that it is possible for an ALTO Server to employ caching for the
>   response to a POST request.  This can be accomplished by returning an
>   HTTP 303 status code ("See Other") indicating to the ALTO Client that
>   the resulting Cost Map is available via a GET request to an alternate
>   URL (which may be cached)."
> 
> The phrase "employ caching" is ambiguous here, as the results of the
> initial POST are not cacheable even in the case of a 303; only
> the results of the later GET request are cachable.

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

>  Since cachability
> is a major reason cited for the re-use of HTTP, some additional text
> on the use cache control directives ("public" and "Max-age" seem
> particularly important in this context) might also be useful.