Return-Path: Delivered-To: apmail-hc-dev-archive@www.apache.org Received: (qmail 58033 invoked from network); 13 Sep 2010 16:19:12 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 13 Sep 2010 16:19:12 -0000 Received: (qmail 6664 invoked by uid 500); 13 Sep 2010 16:19:12 -0000 Delivered-To: apmail-hc-dev-archive@hc.apache.org Received: (qmail 6534 invoked by uid 500); 13 Sep 2010 16:19:12 -0000 Mailing-List: contact dev-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpComponents Project" Delivered-To: mailing list dev@hc.apache.org Received: (qmail 6526 invoked by uid 99); 13 Sep 2010 16:19:12 -0000 Received: from Unknown (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Sep 2010 16:19:12 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Sep 2010 16:18:54 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o8DGIX8W000431 for ; Mon, 13 Sep 2010 16:18:33 GMT Message-ID: <27534350.155721284394713015.JavaMail.jira@thor> Date: Mon, 13 Sep 2010 12:18:33 -0400 (EDT) From: "Jonathan Moore (JIRA)" To: dev@hc.apache.org Subject: [jira] Updated: (HTTPCLIENT-995) cache returns cached responses even if validators not consistent with all conditional headers In-Reply-To: <886597.155661284394472703.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HTTPCLIENT-995?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jonathan Moore updated HTTPCLIENT-995: -------------------------------------- Attachment: mismatched-conditionals.patch The attached patch addresses this issue. In addition, we are now very explicit about not using cached responses for conditionals we don't currently understand/support, namely: If-Range, If-Match (for GETs), and If-Unmodified-Since (for GETs). This patch is contributed to the ASF with the permission of my employer. > cache returns cached responses even if validators not consistent with all conditional headers > --------------------------------------------------------------------------------------------- > > Key: HTTPCLIENT-995 > URL: https://issues.apache.org/jira/browse/HTTPCLIENT-995 > Project: HttpComponents HttpClient > Issue Type: Bug > Components: Cache > Affects Versions: 4.1 Alpha2 > Reporter: Jonathan Moore > Attachments: mismatched-conditionals.patch > > > This is a MUST-level requirement in the RFC, where if both ETags and Last-Modified dates are used as validators in a conditional request, a cache cannot return a cached response unless it is consistent with all the conditional headers in the request. There is a unit test for this already, but it is incorrect (it uses 'If-Unmodified-Since' instead of 'If-Modified-Since' in the test case). -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org For additional commands, e-mail: dev-help@hc.apache.org