diff options
author | Starfall <us@starfall.systems> | 2023-01-09 20:21:10 -0600 |
---|---|---|
committer | Starfall <us@starfall.systems> | 2023-01-09 20:21:10 -0600 |
commit | 6636a4a0a59dc73cdd4a0e123363794574415df5 (patch) | |
tree | a47e9150d76bb5fa3db40b4730d480f7568db4cb /fscache.py | |
parent | db89bdad5ed68a31828d578ff794982e08f30fdc (diff) |
parse cache-control max-age for caching
Diffstat (limited to 'fscache.py')
-rw-r--r-- | fscache.py | 1 |
1 files changed, 1 insertions, 0 deletions
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() |