mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-01 19:18:12 +08:00
revert removal of cache control headers (#2118)
* revert removal of cache control headers * always generate cache header for health route
This commit is contained in:
@@ -27,6 +27,7 @@ class ServerConfig(BaseConfig):
|
||||
self.app__open_browser = default_config["app"]["open_browser"]
|
||||
self.app__force_https = default_config["app"]["force_https"]
|
||||
self.app__flask_secret_key = default_config["app"]["flask_secret_key"]
|
||||
self.app__generate_cache_control_headers = default_config["app"]["generate_cache_control_headers"]
|
||||
|
||||
self.authentication__type = default_config["authentication"]["type"]
|
||||
self.authentication__insecure_test_environment = default_config["authentication"][
|
||||
@@ -73,6 +74,7 @@ class ServerConfig(BaseConfig):
|
||||
self.validate_correct_type_of_configuration_attribute("app__open_browser", bool)
|
||||
self.validate_correct_type_of_configuration_attribute("app__force_https", bool)
|
||||
self.validate_correct_type_of_configuration_attribute("app__flask_secret_key", str)
|
||||
self.validate_correct_type_of_configuration_attribute("app__generate_cache_control_headers", bool)
|
||||
|
||||
if self.app__port:
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user