diff options
author | Jordan Cook <jordan.cook@pioneer.com> | 2021-09-05 13:21:32 -0500 |
---|---|---|
committer | Jordan Cook <jordan.cook@pioneer.com> | 2021-09-06 17:39:15 -0500 |
commit | 8c05674c426298da7cd8a333c2dfce53151e041f (patch) | |
tree | e9bf7b6eb2a105ae6843cf1d74503aa95e0d964c /README.md | |
parent | 7ed1b4dffdd2254a6c319f23bab43df3f6fad91e (diff) | |
download | requests-cache-8c05674c426298da7cd8a333c2dfce53151e041f.tar.gz |
Alias/rename 'include_get_headers' to 'match_headers' for clarity (backwards-compatibile)
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -102,7 +102,7 @@ session = CachedSession( expire_after=timedelta(days=1), # Otherwise expire responses after one day allowable_methods=['GET', 'POST'] # Cache POST requests to avoid sending the same data twice allowable_codes=[200, 400] # Cache 400 responses as a solemn reminder of your failures - include_get_headers=True, # Match all request headers + match_headers=True, # Match all request headers ignored_parameters=['api_key'], # Don't match this param or save it in the cache old_data_on_error=True, # In case of request errors, use stale cache data if possible ) |