mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-30 22:53:59 +00:00 
			
		
		
		
	Dashboard disable assets caching (#2025)
This commit is contained in:
		| @@ -782,10 +782,9 @@ def make_app(debug=get_bool_env(ENV_DEV)): | ||||
|  | ||||
|     class StaticFileHandler(tornado.web.StaticFileHandler): | ||||
|         def set_extra_headers(self, path): | ||||
|             if debug: | ||||
|                 self.set_header( | ||||
|                     "Cache-Control", "no-store, no-cache, must-revalidate, max-age=0" | ||||
|                 ) | ||||
|             self.set_header( | ||||
|                 "Cache-Control", "no-store, no-cache, must-revalidate, max-age=0" | ||||
|             ) | ||||
|  | ||||
|     app_settings = { | ||||
|         "debug": debug, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user