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

Allow query string to be ignored when determining cacheability for HTTP 1.0 responses

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.2.1
    • 4.3 Alpha1
    • HttpCache
    • None

    Description

      For HTTP 1.0 responses, the cache uses a heuristic that checks for the presence of a query string, and if found, disables caching regardless of any explicit cache headers. This should be configurable to allow a client to disable this heuristic.

      In my case, I have a squid proxy in front of my server that is turning all responses into HTTP 1.0 responses, and thereby, disabling the cache for all outgoing requests that involve a query string. Ignoring the query string will work great for me as I use the cache in a controlled environment where the caching behavior is documented and understood by clients.

      Attachments

        1. fix_query_caching_in_http_1_0.patch
          16 kB
          Donald J. Brown

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mrdon Donald J. Brown
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: