Uploaded image for project: 'HttpComponents HttpClient'
  1. HttpComponents HttpClient
  2. HTTPCLIENT-1460

Cached files would be deleted after CloseableHttpClient being closed.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.3.2
    • 4.4 Alpha1
    • HttpCache
    • None

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            yangbo Yang Bo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: