Return-Path: X-Original-To: apmail-hc-dev-archive@www.apache.org Delivered-To: apmail-hc-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 84A74C3C5 for ; Thu, 13 Jun 2013 15:11:21 +0000 (UTC) Received: (qmail 576 invoked by uid 500); 13 Jun 2013 15:11:21 -0000 Delivered-To: apmail-hc-dev-archive@hc.apache.org Received: (qmail 542 invoked by uid 500); 13 Jun 2013 15:11:21 -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 530 invoked by uid 99); 13 Jun 2013 15:11:20 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Jun 2013 15:11:20 +0000 Date: Thu, 13 Jun 2013 15:11:20 +0000 (UTC) From: "Jon Moore (JIRA)" To: dev@hc.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HTTPCLIENT-1370) Response to Non-GET Requests Should Never be Cached With the Default Response CachingPolicy MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HTTPCLIENT-1370?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13682322#comment-13682322 ] Jon Moore commented on HTTPCLIENT-1370: --------------------------------------- Hi James, This particular case is governed by: http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.2 "9.2 OPTIONS. ... Responses to this method are not cacheable." This is already captured in the CacheableRequestPolicy. The end-to-end test is covered by TestProtocolRequirements#testResponsesToOPTIONSAreNotCacheable. In other words, for your test case, the thing that makes the response not cacheable is a property of the *request* (its method) and not a property of the *response*. Jon > Response to Non-GET Requests Should Never be Cached With the Default Response CachingPolicy > ------------------------------------------------------------------------------------------- > > Key: HTTPCLIENT-1370 > URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1370 > Project: HttpComponents HttpClient > Issue Type: Bug > Components: CacheHttpClient Caching components > Affects Versions: 4.3 Beta2 > Reporter: James Leigh > Labels: patch > Fix For: 4.3 Beta3 > > Attachments: HTTPCLIENT-1370.patch > > > HttpClient caches response to non-GET requests when a shared cache is used and an Authorization header is present with Cache-Control: public. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org For additional commands, e-mail: dev-help@hc.apache.org