From 6636a4a0a59dc73cdd4a0e123363794574415df5 Mon Sep 17 00:00:00 2001 From: Starfall Date: Mon, 9 Jan 2023 20:21:10 -0600 Subject: parse cache-control max-age for caching --- fscache.py | 1 + 1 file changed, 1 insertion(+) (limited to 'fscache.py') diff --git a/fscache.py b/fscache.py index 234e659..e549e92 100644 --- a/fscache.py +++ b/fscache.py @@ -30,6 +30,7 @@ class Cache: raise CacheMiss if time.time() > loc.stat().st_mtime: + loc.unlink() raise CacheMiss return loc.read_text() -- cgit