Skip to content

Commit

Permalink
config: add default value for caching max_age
Browse files Browse the repository at this point in the history
  • Loading branch information
nico authored and kpsherva committed Jul 29, 2022
1 parent da48dbb commit 95e9eda
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions {{cookiecutter.project_shortname}}/invenio.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ from flask_babelex import lazy_gettext as _
# =====
# See https://flask.palletsprojects.com/en/1.1.x/config/

# Define the value of the cache control header `max-age` returned by the server when serving
# public files. Files will be cached by the browser for the provided number of seconds.
# See flask documentation for more information:
# https://flask.palletsprojects.com/en/2.1.x/config/#SEND_FILE_MAX_AGE_DEFAULT
SEND_FILE_MAX_AGE_DEFAULT = 300

# SECURITY WARNING: keep the secret key used in production secret!
# Do not commit it to a source code repository.
# TODO: Set
Expand Down

0 comments on commit 95e9eda

Please sign in to comment.