Return-Path: Delivered-To: apmail-hc-dev-archive@www.apache.org Received: (qmail 32897 invoked from network); 20 Aug 2010 14:54:45 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 20 Aug 2010 14:54:45 -0000 Received: (qmail 72513 invoked by uid 500); 20 Aug 2010 14:54:45 -0000 Delivered-To: apmail-hc-dev-archive@hc.apache.org Received: (qmail 72099 invoked by uid 500); 20 Aug 2010 14:54:42 -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 71846 invoked by uid 99); 20 Aug 2010 14:54:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Aug 2010 14:54:40 +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; Fri, 20 Aug 2010 14:54:38 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o7KEsHJl027967 for ; Fri, 20 Aug 2010 14:54:17 GMT Message-ID: <4803010.470181282316057019.JavaMail.jira@thor> Date: Fri, 20 Aug 2010 10:54:17 -0400 (EDT) From: "Jonathan Moore (JIRA)" To: dev@hc.apache.org Subject: [jira] Commented: (HTTPCLIENT-982) Could we get a way to know if the response has been served from the cache or not ? In-Reply-To: <12698920.468621282309223569.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-982?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12900714#action_12900714 ] Jonathan Moore commented on HTTPCLIENT-982: ------------------------------------------- The CachedHttpResponseGenerator sets an Age header and a Via header. Is that sufficient, or would you like to see something more explicitorRor example, we could add an extension header: X-HttpClient-Cache: HIT X-HttpClient-Cache: HIT, VALIDATED X-HttpClient-Cache: HIT, REFRESHED X-HttpClient-Cache: MISS X-HttpClient-Cache: UNCACHEABLE etc. Squid does something similar to this. > Could we get a way to know if the response has been served from the cache or not ? > ---------------------------------------------------------------------------------- > > Key: HTTPCLIENT-982 > URL: https://issues.apache.org/jira/browse/HTTPCLIENT-982 > Project: HttpComponents HttpClient > Issue Type: New Feature > Components: Cache > Affects Versions: 4.1 Alpha2 > Reporter: Vianney Carel > Priority: Trivial > > Is there a way to know if the response has been served from the cache or not ? > That's an information which might be useful for monitoring the activity of the cache. > If there's no current way, maybe a flag could be added in the request context whenever the response comes from the cache ... ? -- 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