You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Francois-Xavier Bonnet (JIRA)" <ji...@apache.org> on 2012/05/25 18:40:23 UTC
[jira] [Created] (HTTPCLIENT-1194) X-cache response header
Francois-Xavier Bonnet created HTTPCLIENT-1194:
--------------------------------------------------
Summary: X-cache response header
Key: HTTPCLIENT-1194
URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1194
Project: HttpComponents HttpClient
Issue Type: Improvement
Components: Cache
Affects Versions: 4.2 Final
Reporter: Francois-Xavier Bonnet
Priority: Minor
Unless I missed something, there is no easy way to see if a request has been served by the cache or by a backend call except from the logs. Usualy in caches there is a way to activate some http headers like "X-cache".
It should not be too hard to add such a feature to HttpClient cache, we could just add a configuration parameter to activate it or not.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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
[jira] [Resolved] (HTTPCLIENT-1194) X-cache response header
Posted by "Jon Moore (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HTTPCLIENT-1194?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jon Moore resolved HTTPCLIENT-1194.
-----------------------------------
Resolution: Duplicate
Duplicate of HTTPCLIENT-982
> X-cache response header
> -----------------------
>
> Key: HTTPCLIENT-1194
> URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1194
> Project: HttpComponents HttpClient
> Issue Type: Improvement
> Components: Cache
> Affects Versions: 4.2 Final
> Reporter: Francois-Xavier Bonnet
> Priority: Minor
>
> Unless I missed something, there is no easy way to see if a request has been served by the cache or by a backend call except from the logs. Usualy in caches there is a way to activate some http headers like "X-cache".
> It should not be too hard to add such a feature to HttpClient cache, we could just add a configuration parameter to activate it or not.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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
[jira] [Commented] (HTTPCLIENT-1194) X-cache response header
Posted by "Francois-Xavier Bonnet (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HTTPCLIENT-1194?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13285516#comment-13285516 ]
Francois-Xavier Bonnet commented on HTTPCLIENT-1194:
----------------------------------------------------
Thanks Jon, I just found it in the documentation. This was exactly what I needed.
> X-cache response header
> -----------------------
>
> Key: HTTPCLIENT-1194
> URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1194
> Project: HttpComponents HttpClient
> Issue Type: Improvement
> Components: Cache
> Affects Versions: 4.2 Final
> Reporter: Francois-Xavier Bonnet
> Priority: Minor
>
> Unless I missed something, there is no easy way to see if a request has been served by the cache or by a backend call except from the logs. Usualy in caches there is a way to activate some http headers like "X-cache".
> It should not be too hard to add such a feature to HttpClient cache, we could just add a configuration parameter to activate it or not.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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
[jira] [Commented] (HTTPCLIENT-1194) X-cache response header
Posted by "Jon Moore (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HTTPCLIENT-1194?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13285542#comment-13285542 ]
Jon Moore commented on HTTPCLIENT-1194:
---------------------------------------
Glad to help!
> X-cache response header
> -----------------------
>
> Key: HTTPCLIENT-1194
> URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1194
> Project: HttpComponents HttpClient
> Issue Type: Improvement
> Components: Cache
> Affects Versions: 4.2 Final
> Reporter: Francois-Xavier Bonnet
> Priority: Minor
>
> Unless I missed something, there is no easy way to see if a request has been served by the cache or by a backend call except from the logs. Usualy in caches there is a way to activate some http headers like "X-cache".
> It should not be too hard to add such a feature to HttpClient cache, we could just add a configuration parameter to activate it or not.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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
[jira] [Commented] (HTTPCLIENT-1194) X-cache response header
Posted by "Jon Moore (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HTTPCLIENT-1194?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13283619#comment-13283619 ]
Jon Moore commented on HTTPCLIENT-1194:
---------------------------------------
Hi Francois-Xavier,
Actually, the cache sets this kind of status in the HttpContext already: please see HTTPCLIENT-982 for details. Let me double-check that this is well-documented somewhere before we close this issue, though.
Jon
> X-cache response header
> -----------------------
>
> Key: HTTPCLIENT-1194
> URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1194
> Project: HttpComponents HttpClient
> Issue Type: Improvement
> Components: Cache
> Affects Versions: 4.2 Final
> Reporter: Francois-Xavier Bonnet
> Priority: Minor
>
> Unless I missed something, there is no easy way to see if a request has been served by the cache or by a backend call except from the logs. Usualy in caches there is a way to activate some http headers like "X-cache".
> It should not be too hard to add such a feature to HttpClient cache, we could just add a configuration parameter to activate it or not.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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
[jira] [Commented] (HTTPCLIENT-1194) X-cache response header
Posted by "Jon Moore (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HTTPCLIENT-1194?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13284880#comment-13284880 ]
Jon Moore commented on HTTPCLIENT-1194:
---------------------------------------
This is mentioned in the Javadocs for the CachingHttpClient, so I'll close this out as a duplicate.
> X-cache response header
> -----------------------
>
> Key: HTTPCLIENT-1194
> URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1194
> Project: HttpComponents HttpClient
> Issue Type: Improvement
> Components: Cache
> Affects Versions: 4.2 Final
> Reporter: Francois-Xavier Bonnet
> Priority: Minor
>
> Unless I missed something, there is no easy way to see if a request has been served by the cache or by a backend call except from the logs. Usualy in caches there is a way to activate some http headers like "X-cache".
> It should not be too hard to add such a feature to HttpClient cache, we could just add a configuration parameter to activate it or not.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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
[jira] [Closed] (HTTPCLIENT-1194) X-cache response header
Posted by "Jon Moore (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HTTPCLIENT-1194?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jon Moore closed HTTPCLIENT-1194.
---------------------------------
> X-cache response header
> -----------------------
>
> Key: HTTPCLIENT-1194
> URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1194
> Project: HttpComponents HttpClient
> Issue Type: Improvement
> Components: Cache
> Affects Versions: 4.2 Final
> Reporter: Francois-Xavier Bonnet
> Priority: Minor
>
> Unless I missed something, there is no easy way to see if a request has been served by the cache or by a backend call except from the logs. Usualy in caches there is a way to activate some http headers like "X-cache".
> It should not be too hard to add such a feature to HttpClient cache, we could just add a configuration parameter to activate it or not.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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