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

304 cached response never reused with If-modified-since conditional requests

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.2.3
    • HttpCache
    • None

    Description

      Steps to reproduce the problem:

      • cache is empty
      • send a conditional If-modified-since request
      • backend server responds with a 304 Not modified (the response does not contain the "Last-modified" header, this conforms to rfc 2616 chapter 10.3.5)
      • the response is stored in the cache
      • send another conditional If-modified-since request
      • as the cache entry does not contain a Last-modified header to match with the If-modified-since request header, the cache considers the entry cannot be used and sends a request again to the backend server

      Attachments

        1. HTTPCLIENT-1290.txt
          2 kB
          Francois-Xavier Bonnet
        2. HTTPCLIENT-1290-patch.txt
          4 kB
          Francois-Xavier Bonnet

        Activity

          People

            Unassigned Unassigned
            fx.bonnet Francois-Xavier Bonnet
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: