arturobernalg opened a new pull request, #961:
URL: https://github.com/apache/httpcomponents-client/pull/961

   Smaller alternative to #960, per @ok2c's request on that PR's review.
   
   CachingExec/AsyncCachingExec build cache keys from the request before Cookie 
(added by the request processor) and Authorization (added by ProtocolExec) are 
attached, so a response varying on either gets cached as one variant and served 
across users - RFC 9111 4.1.
   
   This doesn't touch the lookup/storage path at all. It just treats Vary: 
Cookie / Vary: Authorization as non-cacheable, the same way Vary: * already is. 
Same two tests from #960 (now asserting "never cached" instead of "cached per 
user"), both red on master, green here.
   
   Known tradeoff: a caller who sets Cookie/Authorization explicitly on the 
request loses per-variant caching for that response too, since this doesn't 
distinguish framework-added from caller-set headers. #960 stays open as the 
fuller fix for after 5.7.


-- 
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]

Reply via email to