diff options
author | Jordan Cook <jordan.cook@pioneer.com> | 2022-04-18 16:10:11 -0500 |
---|---|---|
committer | Jordan Cook <jordan.cook@pioneer.com> | 2022-04-18 19:50:55 -0500 |
commit | a899d9231c38f11c28b3eb0310022c92d82262b8 (patch) | |
tree | cf09e91629447bbf17fc5ef98f76d1d2866cb1a0 /HISTORY.md | |
parent | ea326d16d82d86f4fda14f83745a5a399824257d (diff) | |
download | requests-cache-a899d9231c38f11c28b3eb0310022c92d82262b8.tar.gz |
Add support for Cache-Control: stale-if-error
Diffstat (limited to 'HISTORY.md')
-rw-r--r-- | HISTORY.md | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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: |