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

   Complete support for RFC5861: Stale-While-Revalidate and Stale-If-Error
   
   Description:
   
   This pull request is a continuation of 
`[dc9b](https://github.com/apache/httpcomponents-client/commit/dc9b7b0f03df55bf88a0e638d900ed2b6206c0be)`
 and aims to provide complete support for the rules of RFC5861, specifically 
covering the Stale-If-Error directive.
   
   Changes include:
   
   1. Updated CachingExec and AsyncCachingExec to handle stale-if-error 
directive as per RFC5861 rules. In case of an exception (e.g., IOException), 
the stale response will be served if the stale-if-error directive is enabled.
   2. Added a new test case testStaleIfErrorEnabledWithIOException() to verify 
the behavior of serving a stale response when stale-if-error is enabled, and an 
exception occurs.
   
   This PR should ensures that our caching implementation follows the RFC5861 
specification completely, including both Stale-While-Revalidate and 
Stale-If-Error directives.


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