Yang Bo created HTTPCLIENT-1460:
-----------------------------------

             Summary: Cached files would be deleted after CloseableHttpClient 
being closed.
                 Key: HTTPCLIENT-1460
                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1460
             Project: HttpComponents HttpClient
          Issue Type: Bug
          Components: HttpCache
    Affects Versions: 4.3.2
            Reporter: Yang Bo


I created a `CloseableHttpClient` from `CachingHttpClientBuilder`. I assigned a 
directory for the `CloseableHttpClient`'s cacheDir.

The `CloseableHttpClient` worked well for processing requests with cache. But 
after `CloseableHttpClient.close()` invoked, all cached files were deleted. 
Therefore, new `CloseableHttpClient` in new JVM cannot reuse original cache. 

This behavior is different from browsers or JDK's http clients.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to