Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

config: add default value for caching max_age #220

Merged

Conversation

NRodriguezcuellar
Copy link

set a default value for the flask variable SEND_FILE_MAX_AGE_DEFAULT

partly closes inveniosoftware/invenio-communities#718

@@ -14,6 +14,9 @@ from flask_babelex import lazy_gettext as _
# =====
# See https://flask.palletsprojects.com/en/1.1.x/config/

# https://flask.palletsprojects.com/en/2.1.x/config/#SEND_FILE_MAX_AGE_DEFAULT
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add an extra small comment?

Suggested change
# https://flask.palletsprojects.com/en/2.1.x/config/#SEND_FILE_MAX_AGE_DEFAULT
# Define 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

@NRodriguezcuellar NRodriguezcuellar force-pushed the set_cache_control_default branch from 8468f4e to 7a95f5c Compare July 21, 2022 07:39
@kpsherva kpsherva merged commit 95e9eda into inveniosoftware:master Jul 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

community logo: replacing an image does not work
4 participants