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:25 UTC

[incubator-superset] branch etr2460--cache-static-resources created (now cc94271)

This is an automated email from the ASF dual-hosted git repository.

erikrit pushed a change to branch etr2460--cache-static-resources
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git.


      at cc94271  [Config] Cache static resources

This branch includes the following new commits:

     new cc94271  [Config] Cache static resources

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[incubator-superset] 01/01: [Config] Cache static resources

Posted by er...@apache.org.
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