From 8c05674c426298da7cd8a333c2dfce53151e041f Mon Sep 17 00:00:00 2001 From: Jordan Cook Date: Sun, 5 Sep 2021 13:21:32 -0500 Subject: Alias/rename 'include_get_headers' to 'match_headers' for clarity (backwards-compatibile) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'README.md') diff --git a/README.md b/README.md index 0caa1cd..3f8c5ff 100644 --- a/README.md +++ b/README.md @@ -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 ) -- cgit v1.2.1