From 8dc50d96ae20f688a6491332244b9f22b55b30ee Mon Sep 17 00:00:00 2001 From: toto Date: Wed, 18 Nov 2020 16:40:40 +0000 Subject: [PATCH] Update static files cache TTL --- CHANGELOG.md | 5 +++++ canonicalwebteam/flask_base/app.py | 1 + setup.py | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 076a46d..afea069 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +# 0.7.0 (2020-11-18) + +### Added +Set `SEND_FILE_MAX_AGE_DEFAULT` to a year (31536000) + # 0.6.4 (2020-09-22) ### Added diff --git a/canonicalwebteam/flask_base/app.py b/canonicalwebteam/flask_base/app.py index c23bab2..d74f416 100644 --- a/canonicalwebteam/flask_base/app.py +++ b/canonicalwebteam/flask_base/app.py @@ -48,6 +48,7 @@ def __init__( self.service = service self.config["SECRET_KEY"] = os.environ["SECRET_KEY"] + self.config["SEND_FILE_MAX_AGE_DEFAULT"] = 31536000 self.url_map.strict_slashes = False self.url_map.converters["regex"] = RegexConverter diff --git a/setup.py b/setup.py index 6a347e2..39650c9 100755 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ setup( name="canonicalwebteam.flask-base", - version="0.6.4", + version="0.7.0", description=( "Flask extension that applies common configurations" "to all of webteam's flask apps."