From 4c1cf54e0fa588eda9ebee0aa48d1b56c0c3a37f Mon Sep 17 00:00:00 2001 From: Scott Worley Date: Thu, 23 Nov 2023 14:13:05 -0800 Subject: [PATCH] fetch: Honor Cache-Control headers --- paperdoorknob.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paperdoorknob.py b/paperdoorknob.py index 3aae538..b7e4349 100644 --- a/paperdoorknob.py +++ b/paperdoorknob.py @@ -34,7 +34,7 @@ def fetch(url: str, session: requests.Session, timeout: int) -> None: def main() -> None: args = command_line_parser().parse_args() - with requests_cache.CachedSession(args.cache_path) as session: + with requests_cache.CachedSession(args.cache_path, cache_control=True) as session: fetch(args.url, session, args.timeout) -- 2.44.1