From a899d9231c38f11c28b3eb0310022c92d82262b8 Mon Sep 17 00:00:00 2001 From: Jordan Cook Date: Mon, 18 Apr 2022 16:10:11 -0500 Subject: Add support for Cache-Control: stale-if-error --- HISTORY.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'HISTORY.md') diff --git a/HISTORY.md b/HISTORY.md index 5e5468a..90dac70 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -13,7 +13,8 @@ * Add `refresh` option to `CachedSession.request()` and `send()` to revalidate with the server before using a cached response * Add `force_refresh` option to `CachedSession.request()` and `send()` to awlays make and cache a new request regardless of existing cache contents * Make behavior for `expire_after=0` consistent with `Cache-Control: max-age=0`: if the response has a validator, save it to the cache but revalidate on use. -* The constant `requests_cache.DO_NOT_CACHE` may be used to completely disable caching for a request + * The constant `requests_cache.DO_NOT_CACHE` may be used to completely disable caching for a request +* Make behavior for `stale_if_error` partially consistent with `Cache-Control: stale-if-error`: Add support for time values (int, timedelta, etc.) in addition to `True/False` **Backends:** * SQLite: -- cgit v1.2.1