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/04/21 20:15:16 UTC

[GitHub] [httpcomponents-client] arturobernalg opened a new pull request, #434: Complete support for Stale-While-Revalidate and Stale-If-Error

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: 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 #434: Complete support for Stale-While-Revalidate and Stale-If-Error

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


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