You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by er...@apache.org on 2019/10/10 20:57:26 UTC
[incubator-superset] 01/01: [Config] Cache static resources
This is an automated email from the ASF dual-hosted git repository.
erikrit pushed a commit to branch etr2460--cache-static-resources
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git
commit cc942714fc7b430711c26a0e389a5e538cb05fbd
Author: Erik Ritter <er...@airbnb.com>
AuthorDate: Thu Oct 10 13:57:14 2019 -0700
[Config] Cache static resources
---
superset/config.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/superset/config.py b/superset/config.py
index 79f723d..27e5655 100644
--- a/superset/config.py
+++ b/superset/config.py
@@ -665,6 +665,9 @@ SESSION_COOKIE_HTTPONLY = True # Prevent cookie from being read by frontend JS?
SESSION_COOKIE_SECURE = False # Prevent cookie from being transmitted over non-tls?
SESSION_COOKIE_SAMESITE = "Lax" # One of [None, 'Lax', 'Strict']
+# Flask configuration variables
+SEND_FILE_MAX_AGE_DEFAULT = 60 * 60 * 24 * 365 # Cache static resources
+
# URI to database storing the example data, points to
# SQLALCHEMY_DATABASE_URI by default if set to `None`
SQLALCHEMY_EXAMPLES_URI = None