summaryrefslogtreecommitdiff
path: root/requests_cache/cache_control.py
diff options
context:
space:
mode:
authorJordan Cook <jordan.cook@pioneer.com>2021-09-19 21:06:03 -0500
committerJordan Cook <jordan.cook@pioneer.com>2021-09-20 23:33:30 -0500
commitb3fc1f042e2deebcc62c1a074a02c0f90ab406ca (patch)
tree505b517e76d06b736966213f7f6e52075d9f463a /requests_cache/cache_control.py
parent5605db4a84c4ee15f4406ea872aa650e31f3348f (diff)
downloadrequests-cache-b3fc1f042e2deebcc62c1a074a02c0f90ab406ca.tar.gz
Reorganize & improve request normalization functions:
* Handle all normalization in `cache_keys` module, get rid of `normalize_dict()` function used in `CachedSession` * Reorganize `cache_keys` helper functions into the following: * `normalize_request()` * `normalize_url()` * `normalize_headers()` * `normalize_params()` * `normalize_body()` * `normalize_json_body()` * `redact_response()`
Diffstat (limited to 'requests_cache/cache_control.py')
-rw-r--r--requests_cache/cache_control.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/requests_cache/cache_control.py b/requests_cache/cache_control.py
index 418ac29..5a5c383 100644
--- a/requests_cache/cache_control.py
+++ b/requests_cache/cache_control.py
@@ -23,7 +23,8 @@ from requests import PreparedRequest, Response
if TYPE_CHECKING:
from .models import CachedResponse
-# Value that may be set by either Cache-Control headers or CachedSession params to disable caching
+__all__ = ['DO_NOT_CACHE', 'CacheActions']
+# May be set by either headers or expire_after param to disable caching
DO_NOT_CACHE = 0
# Supported Cache-Control directives