arturobernalg opened a new pull request, #417: URL: https://github.com/apache/httpcomponents-client/pull/417
This pull request addresses the issue where heuristic caching was not working for URIs with query strings. The problem arises from Section 13.9 of RFC 2616, which prohibits caches from treating responses to such URIs as fresh unless the server provides an explicit expiration time. However, as noted in Section 4.2.2 of RFC 7234, this prohibition has not been widely implemented, and origin servers are encouraged to send explicit directives if they wish to preclude caching. The current implementation of the module adheres to the safe interpretation of RFC 2616 and does not cache responses to URIs with query strings. However, it would be possible to introduce a configuration option that relaxed this rule, in line with the updated RFC 7234. This pull request introduces the configuration option neverCacheHTTP11ResponsesWithQuery, which determines whether HTTP/1.1 responses with query strings should never be cached by the client. By default, caching of such responses is allowed, but enabling this option may improve security by preventing responses with sensitive information from being cached. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
