You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "arturobernalg (via GitHub)" <gi...@apache.org> on 2023/02/27 20:49:34 UTC

[GitHub] [httpcomponents-client] arturobernalg opened a new pull request, #417: Fix Heuristic caching for URIs with query strings by adhering to RFC …

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: dev-unsubscribe@hc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


[GitHub] [httpcomponents-client] ok2c commented on pull request #417: Fix Heuristic caching for URIs with query strings by adhering to RFC …

Posted by "ok2c (via GitHub)" <gi...@apache.org>.
ok2c commented on PR #417:
URL: https://github.com/apache/httpcomponents-client/pull/417#issuecomment-1453773882

   If there are no objections or other reviews I will merge this PR in a day or two.


-- 
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: dev-unsubscribe@hc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


[GitHub] [httpcomponents-client] ok2c merged pull request #417: Fix Heuristic caching for URIs with query strings by adhering to RFC …

Posted by "ok2c (via GitHub)" <gi...@apache.org>.
ok2c merged PR #417:
URL: https://github.com/apache/httpcomponents-client/pull/417


-- 
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: dev-unsubscribe@hc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org