summaryrefslogtreecommitdiff
path: root/HISTORY.md
diff options
context:
space:
mode:
authorJordan Cook <jordan.cook@pioneer.com>2022-05-03 14:52:45 -0500
committerJordan Cook <jordan.cook@pioneer.com>2022-05-03 20:00:03 -0500
commit2ac57cfc5ecbd65ad101370293b5ba97ce459b60 (patch)
tree9e70f7ab49b22e7030f01b9e4cdab94647a835bc /HISTORY.md
parent375e611e50b7d2780e8d7007455b48453c9ba4b3 (diff)
downloadrequests-cache-2ac57cfc5ecbd65ad101370293b5ba97ce459b60.tar.gz
Update changelog and contributors
Diffstat (limited to 'HISTORY.md')
-rw-r--r--HISTORY.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/HISTORY.md b/HISTORY.md
index d8e6950..ff9c406 100644
--- a/HISTORY.md
+++ b/HISTORY.md
@@ -10,6 +10,8 @@
* Add support for `Cache-Control: only-if-cached`
* Revalidate for `Cache-Control: no-cache` request or response header
* Revalidate for `Cache-Control: max-age=0, must-revalidate` response headers
+* Add an attribute `CachedResponse.revalidated` to indicate if a cached response was revalidated for
+ the current request
**Settings:**
* All settings that affect cache behavior can now be accessed and modified via `CachedSession.settings`
@@ -19,6 +21,8 @@
* 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
* 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`
+* Add `always_revalidate` session setting to always revalidate before using a cached response (if a
+ validator) is available.
**Backends:**
* SQLite:
@@ -50,6 +54,7 @@
* `expires`
* `from_cache`
* `is_expired`
+ * `revalidated`
* `OriginalResponse.cache_key` and `expires` will be populated for any new response that was written to the cache
* Add request wrapper methods with return type hints for all HTTP methods (`CachedSession.get()`, `head()`, etc.)