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:
Bruce Martin
2021-03-26 08:49:44 -07:00
committed by GitHub
parent 78c9d24ed4
commit b494dd31f4
6 changed files with 60 additions and 1 deletions
@@ -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: