304 on Non-Conditional Request?

Mike Bishop <Michael.Bishop@microsoft.com> Thu, 11 August 2016 21:49 UTC

Return-Path: <ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@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 24DEC12D7C6 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 11 Aug 2016 14:49:34 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -8.267
X-Spam-Level:
X-Spam-Status: No, score=-8.267 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-1.247, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=microsoft.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id AwKaUu9Qnr4z for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 11 Aug 2016 14:49:32 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 24BB712D7B2 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 11 Aug 2016 14:49:31 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1bXxmz-00082J-Pi for ietf-http-wg-dist@listhub.w3.org; Thu, 11 Aug 2016 21:45:21 +0000
Resent-Date: Thu, 11 Aug 2016 21:45:21 +0000
Resent-Message-Id: <E1bXxmz-00082J-Pi@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <Michael.Bishop@microsoft.com>) id 1bXxmo-000819-AP for ietf-http-wg@listhub.w3.org; Thu, 11 Aug 2016 21:45:10 +0000
Received: from mail-dm3nam03on0094.outbound.protection.outlook.com ([104.47.41.94] helo=NAM03-DM3-obe.outbound.protection.outlook.com) by lisa.w3.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from <Michael.Bishop@microsoft.com>) id 1bXxml-0003F4-1l for ietf-http-wg@w3.org; Thu, 11 Aug 2016 21:45:09 +0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=6psTJS6S4wASSlobAxmyhX+ozbZ7XM++so9ikJw6Wzc=; b=o7cskZn0DqK/qOf3q1NpTbC9exsG38lFKvuVp/qQE9heTxUxAAI1M0WJCf/LZpCtLfL2kF2rdavxek+rKxdRAzLte4ynC29hPxuvSOQxCaN+GKvB2WLd1dvP1JBy28Hy4DSgsv9iShvP1SieXxdyABY0pUsRBnu9h8TxUi9QXx4=
Received: from BY1PR03MB1338.namprd03.prod.outlook.com (10.162.109.20) by BY1PR03MB1339.namprd03.prod.outlook.com (10.162.109.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.549.15; Thu, 11 Aug 2016 21:44:38 +0000
Received: from BY1PR03MB1338.namprd03.prod.outlook.com ([10.162.109.20]) by BY1PR03MB1338.namprd03.prod.outlook.com ([10.162.109.20]) with mapi id 15.01.0549.025; Thu, 11 Aug 2016 21:44:38 +0000
From: Mike Bishop <Michael.Bishop@microsoft.com>
To: HTTP Working Group <ietf-http-wg@w3.org>
Thread-Topic: 304 on Non-Conditional Request?
Thread-Index: AdH0GSx0O82Sr2RJSFSZsm5kX8lcYg==
Date: Thu, 11 Aug 2016 21:44:38 +0000
Message-ID: <BY1PR03MB1338D4919BC6CB061EF86C5E871E0@BY1PR03MB1338.namprd03.prod.outlook.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: spf=none (sender IP is ) smtp.mailfrom=Michael.Bishop@microsoft.com;
x-originating-ip: [2001:4898:80e8:e::390]
x-ms-office365-filtering-correlation-id: 51f7b0ce-0115-43f0-9014-08d3c230b1b5
x-microsoft-exchange-diagnostics: 1; BY1PR03MB1339; 6:/lOjubSkFpTjhGOkJiQ33lr+tmT5586Q8IQKIxB1SR/PSw7156+PdFq069qElt2LcDKUBf9VhZNU2DqCE3e8k/I6G6TMIRs1npncMVXsOM8WUkfK+h2UVGZK9uJtJLfAz3UgMr8BMNNzWiRPfuMgDIzwhBLAFAuvk+ultpYRSV+PAf+NLF7oEff2JtlfRLd1QOZeUqhC1jh+tmEU9mbCY5MDyYWC/pOLslETA0CCDiehmA+nUr1hBTcgoxUVEcKhdWk5N/mJR5LObdpc+krv1RBscN8Z3Iep9JUd/iKVcABeMajTrU2YExJX2dxbnVMF7tPTAyA8etZOmbtvoTD3uA==; 5:A4L37fyWMVmzF/krc6Y6MDMhPhzDYUnkq+utCpc4u2vnhyky37Jg+/TvJCRA1tsTK/f0vmoQRaF+nW549gi113ZYBJfON5BmWozMb/oacXSuDnvAbDQdiKjE/ZLpPqdRX58AFXKOwNv51yZNwOjsfw==; 24:O3QVIWuUc1UWiNK4tFfHLstkogEJhtuFupSxCgym/h7YQoN/vFZhmWIuJtAaW6bT690+2TO2Q2XSPilZTGwYVEZ7b0JpIBTPBy0Ek75fEso=; 7:+VQWFpyEJQQb/78g8n9OrQ9lJQ6Np0See+QzMrT7WMpqDlnJytYQXqVjX65ZyiK4xSE3ubHkBiodi2O4pBkvxpVC6wilUqw2Zu99ZuUO+SZRXCzKuthqhYehpFwXBnoI6/rVVTPM02c9rnXwqLJqRMxcnfSqMEtWCVolwti+LxqeTcw4xguUPhkS0Eca9wtZD0cS8tMuGWgdhnBoMvPet6E3AjKR4jUn3OqUyCZqk2vMxUQeIfoqMdVitrTR34GE
x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY1PR03MB1339;
x-microsoft-antispam-prvs: <BY1PR03MB1339B2BD725377DAFEC5ADC1871E0@BY1PR03MB1339.namprd03.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:(158342451672863)(21748063052155);
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(61425038)(6040174)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001)(6055026)(61426038)(61427038); SRVR:BY1PR03MB1339; BCL:0; PCL:0; RULEID:; SRVR:BY1PR03MB1339;
x-forefront-prvs: 0031A0FFAF
x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(6009001)(7916002)(189002)(199003)(586003)(229853001)(101416001)(33656002)(19580395003)(790700001)(54356999)(102836003)(122556002)(81156014)(16236675004)(50986999)(450100001)(11100500001)(74316002)(3660700001)(8676002)(81166006)(6116002)(105586002)(77096005)(92566002)(15975445007)(7696003)(8936002)(7736002)(86362001)(3280700002)(99286002)(68736007)(189998001)(5002640100001)(7846002)(106356001)(76576001)(10400500002)(2900100001)(8990500004)(110136002)(107886002)(19625215002)(86612001)(5005710100001)(10290500002)(10090500001)(2906002)(19300405004)(87936001)(9686002)(97736004)(3826002); DIR:OUT; SFP:1102; SCL:1; SRVR:BY1PR03MB1339; H:BY1PR03MB1338.namprd03.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en;
received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts)
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: multipart/alternative; boundary="_000_BY1PR03MB1338D4919BC6CB061EF86C5E871E0BY1PR03MB1338namp_"
MIME-Version: 1.0
X-OriginatorOrg: microsoft.com
X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Aug 2016 21:44:38.2674 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR03MB1339
Received-SPF: pass client-ip=104.47.41.94; envelope-from=Michael.Bishop@microsoft.com; helo=NAM03-DM3-obe.outbound.protection.outlook.com
X-W3C-Hub-Spam-Status: No, score=-4.0
X-W3C-Hub-Spam-Report: AWL=-2.454, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, W3C_NW=0.5
X-W3C-Scan-Sig: lisa.w3.org 1bXxml-0003F4-1l 7ee77c782e8eb078570dade56230960e
X-Original-To: ietf-http-wg@w3.org
Subject: 304 on Non-Conditional Request?
Archived-At: <http://www.w3.org/mid/BY1PR03MB1338D4919BC6CB061EF86C5E871E0@BY1PR03MB1338.namprd03.prod.outlook.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/32258
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>

Going back over my HTTP Workshop notes around push and cache revalidation, I see a comment that a 304 response to a non-conditional GET is supposed to be valid, if somewhat ambiguous.  I'm trying to parse what that would mean, and I'm drawing a blank.

RFC 7232 defines 304 (Not Modified) this way:

   The 304 (Not Modified) status code indicates that a conditional GET

   or HEAD request has been received and would have resulted in a 200

   (OK) response if it were not for the fact that the condition

   evaluated to false.  In other words, there is no need for the server

   to transfer a representation of the target resource because the

   request indicates that the client, which made the request

   conditional, already has a valid representation; the server is

   therefore redirecting the client to make use of that stored

   representation as if it were the payload of a 200 (OK) response.

I therefore can't envision the scenario in which you would use this for a non-conditional GET.  I could vaguely see the reason phrase "Not Modified" as applying to e.g. a PATCH or PUT that doesn't actually result in a change to the resource, but that still seems more like a 2XX series response, perhaps 202 (Accepted).  But that's not GET.

Is there a scenario I'm missing, were my notes incorrect, or did I accurately transcribe the comment of someone who was incorrect?