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

Improve handling of "no-cache" directive with specified header fields

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 5.4-alpha1
    • None
    • None

    Description

      Currently, the Apache HttpComponents client does not fully handle the "no-cache" directive with specified header fields as outlined in RFC 7234. This may lead to incorrect caching behavior when the "no-cache" directive is used with specific header fields.

      The goal of this ticket is to enhance the handling of the "no-cache" directive to ensure that specified header fields are not sent in a response to a subsequent request without successful revalidation with the origin server. This allows an origin server to prevent the re-use of certain header fields in a response, while still allowing caching of the rest of the response.

      To achieve this, the following changes should be made:
       # Update the caching module to identify and handle "no-cache" directives with specified header fields.
       # Revalidate the response with the origin server when the specified header fields are present in a cached response, to ensure that they are not reused without successful revalidation.
       # Ensure that the rest of the response is still cacheable when the specified header fields are present, as long as the response complies with other caching requirements.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              arturobernalg Arturo Bernal
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 10m
                  10m