Skip to content

Commit

Permalink
Merge pull request #35 from tbille/upate-ttl-cache-static-files
Browse files Browse the repository at this point in the history
Update static files cache TTL
  • Loading branch information
jkfran authored Nov 18, 2020
2 parents 6a0ee33 + 8dc50d9 commit 232cbeb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 1 addition & 0 deletions canonicalwebteam/flask_base/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down

0 comments on commit 232cbeb

Please sign in to comment.