diff options
author | Jordan Cook <jordan.cook.git@proton.me> | 2022-09-29 11:47:49 -0500 |
---|---|---|
committer | Jordan Cook <jordan.cook.git@proton.me> | 2022-09-29 12:05:13 -0500 |
commit | 5204d487fea1d0b89e9eecdbc4a38621d2d4dbe4 (patch) | |
tree | 5a7683e4cb01359a151742223c4d3a4301d75f50 /HISTORY.md | |
parent | 8af0552b3f1011b5c004d345da4d94e48a40e4fe (diff) | |
download | requests-cache-5204d487fea1d0b89e9eecdbc4a38621d2d4dbe4.tar.gz |
Match whether ignored_parameters are present in a request (without matching content)
Diffstat (limited to 'HISTORY.md')
-rw-r--r-- | HISTORY.md | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -54,8 +54,12 @@ **Request matching & filtering:** * Add serializer name to cache keys to avoid errors due to switching serializers * Always skip both cache read and write for requests excluded by `allowable_methods` (previously only skipped write) -* Ignore and redact common authentication headers and request parameters by default. This provides some default recommended values for `ignored_parameters`, to avoid accidentally storing common credentials (e.g., OAuth tokens) in the cache. This will have no effect if you are already setting `ignored_parameters`. -* Support distinct matching for requests that differ by duplicate request params (e.g, `a=1` vs `?a=1&a=2`) +* Ignore and redact common authentication headers and request parameters by default. This provides + some default recommended values for `ignored_parameters`, to avoid accidentally storing common + credentials in the cache. This will have no effect if `ignored_parameters` is already set. +* Support distinct matching for requests that differ only by a parameter in `ignored_parameters` + (e.g., for a request sent both with and without authentication) +* Support distinct matching for requests that differ only by duplicate request params (e.g, `a=1` vs `?a=1&a=2`) **Cache convenience methods:** * Add `expired` and `invalid` arguments to `BaseCache.delete()` (to replace `remove_expired_responses()`) |