You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Akash (Jira)" <ji...@apache.org> on 2022/07/15 18:29:00 UTC

[jira] [Updated] (HTTPCLIENT-2229) Http cache key is not unique across http methods.

     [ https://issues.apache.org/jira/browse/HTTPCLIENT-2229?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Akash updated HTTPCLIENT-2229:
------------------------------
    Description: 
We use HttpClient5 with [MemcachedHttpCacheStorage|https://hc.apache.org/httpcomponents-client-5.1.x/current/httpclient5-cache/apidocs/] configured. It seems like we get cache hit for a get request, while the cached response is for a http HEAD request. Hence the cached response doesn't not have response body.

Ask here is to ensure that cache key to also include the http method.

  was:
We use HttpClient5 with [MemcachedHttpCacheStorage|https://hc.apache.org/httpcomponents-client-5.1.x/current/httpclient5-cache/apidocs/] configured. It seems like we get cache hit for a get request, while the cached response is for a http HEAD request. Hence the cached response doesn't not have response body.

Ask here is to ensure the cache key to also include the http method.


> Http cache key is not unique across http methods.
> -------------------------------------------------
>
>                 Key: HTTPCLIENT-2229
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-2229
>             Project: HttpComponents HttpClient
>          Issue Type: Bug
>          Components: HttpCache
>    Affects Versions: 5.0, 5.1
>            Reporter: Akash
>            Priority: Major
>
> We use HttpClient5 with [MemcachedHttpCacheStorage|https://hc.apache.org/httpcomponents-client-5.1.x/current/httpclient5-cache/apidocs/] configured. It seems like we get cache hit for a get request, while the cached response is for a http HEAD request. Hence the cached response doesn't not have response body.
> Ask here is to ensure that cache key to also include the http method.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org