Re: The document's address

Nicholas Shanks <nickshanks@gmail.com> Fri, 18 January 2013 11:49 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 3B10521F884C for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 18 Jan 2013 03:49:09 -0800 (PST)
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 ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id eMyxCB03878L for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 18 Jan 2013 03:49:08 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 1B2FE21F8849 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Fri, 18 Jan 2013 03:49:08 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TwAQf-00051A-0t for ietf-http-wg-dist@listhub.w3.org; Fri, 18 Jan 2013 11:48:13 +0000
Resent-Date: Fri, 18 Jan 2013 11:48:13 +0000
Resent-Message-Id: <E1TwAQf-00051A-0t@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <nickshanks@gmail.com>) id 1TwAQY-00050B-Dy; Fri, 18 Jan 2013 11:48:06 +0000
Received: from mail-lb0-f179.google.com ([209.85.217.179]) by lisa.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <nickshanks@gmail.com>) id 1TwAQX-0004zx-Li; Fri, 18 Jan 2013 11:48:06 +0000
Received: by mail-lb0-f179.google.com with SMTP id gm13so2671063lbb.38 for <multiple recipients>; Fri, 18 Jan 2013 03:47:38 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=gBTk9Y9lodPFnflWP/gCUL69U2Zq6gf0aijAtkIWryo=; b=D5qQWn11YWhmTVsKF4Rikh/oVZeXVsBoMLvWxGRuX2L84pWT1QIs/6dZg3f7zNuxXK QwL66bi9Zb7rsG09dCMBP/A35Jxtv4O8Nvk5hObfsFTodXPZXB4RSHXrdFrfayRSg3Oq HQrZf8STW9hmtm5dvSaiQydNoQ90MEFWyVhn4t9POAOna4kCsxE2T0GMmHHFnV03x8Is JW4HhULbR7PlBPsL7iyngN3muQZNPyiD3A5PfaCfK3RrIzfiAC3lS5QgzlU3aPhAEMX8 +jzLupMrAapygqbpwI5qDAs6oTl+Pw1pbe62MtXUbJMvMJ11hjbOLKE02wO6JK+lwOY3 TgPA==
X-Received: by 10.112.54.6 with SMTP id f6mr3636288lbp.71.1358509658706; Fri, 18 Jan 2013 03:47:38 -0800 (PST)
MIME-Version: 1.0
Received: by 10.114.18.40 with HTTP; Fri, 18 Jan 2013 03:46:58 -0800 (PST)
In-Reply-To: <Pine.LNX.4.64.1301171948100.2101@ps20323.dreamhostps.com>
References: <DF0A84C4-AEAB-4716-B23F-FB3BA48BDE3C@gmail.com> <Pine.LNX.4.64.1301171948100.2101@ps20323.dreamhostps.com>
From: Nicholas Shanks <nickshanks@gmail.com>
Date: Fri, 18 Jan 2013 11:46:58 +0000
Message-ID: <CA+hEJVXz61Z16v5scW=YnM_5f6MY==PBySor82hRFA+rbuDuZw@mail.gmail.com>
To: Ian Hickson <ian@hixie.ch>, Julian Reschke <julian.reschke@greenbytes.de>, Roy <fielding@gbiv.com>
Cc: W3 HTML Public List <www-html@w3.org>, IETF HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: text/plain; charset="UTF-8"
Received-SPF: pass client-ip=209.85.217.179; envelope-from=nickshanks@gmail.com; helo=mail-lb0-f179.google.com
X-W3C-Hub-Spam-Status: No, score=-0.8
X-W3C-Hub-Spam-Report: 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 1TwAQX-0004zx-Li 87198c335c07312e9f9a627b71952064
X-Original-To: ietf-http-wg@w3.org
Subject: Re: The document's address
Archived-At: <http://www.w3.org/mid/CA+hEJVXz61Z16v5scW=YnM_5f6MY==PBySor82hRFA+rbuDuZw@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15999
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>

On 17 January 2013 19:49, Ian Hickson <ian@hixie.ch> wrote:
> On Wed, 21 Nov 2012, Nicholas Shanks wrote:
>>
>> The definition of the document's address:
>> http://dev.w3.org/html5/spec/dom.html#the-document's-address
>> doesn't mention if the Content-Location header should be taken into account.
>
> My understanding is that Content-Location is essentially dead:
>
>    http://trac.tools.ietf.org/wg/httpbis/trac/ticket/154

That ticket says:

"2) HTTP's advice to set Content-Location when doing server-driven
content negotiation results in links that are relative to a negotiated
resource, rather than the desired (non-negotiated) URI."


I find this is a real pain and wish I could turn it off in Apache. I
only want Content-Location to be present when I intend it to be, e.g I
want to do this:

POST /collection-uri
{ representation of new resource }

201 Created
Content-Location: /resource-uri
{ representation of created resource }

and have caches and the address in the browser's address bar use the
given Content-Location for the representation returned, not use the
request URI.


But instead I have to do this:

POST /collection-uri
{ representation of new resource }

303 Go Here
Content-Location: /resource-uri

GET /resource-uri

200 OK
{ representation of created resource }


requiring an extra round-trip and losing the semantics of a 201
response. If HTTP could be changed so that content negotiation MUST
NOT cause C-L: header to be added, and HTTP software patched to obey
this, then there may be scope in the future for requiring UAs to
display the Content-Location rather than the request URI, once servers
have had their software updated. HTTP 1.x may be a lost cause, but
there is still time to fix it for 2.0

-- 
Nicholas.