1
0
mirror of https://github.com/esphome/esphome.git synced 2024-10-06 19:00:59 +01:00

Dashboard disable assets caching (#2025)

This commit is contained in:
Otto Winter 2021-07-16 10:22:42 +02:00 committed by Jesse Hills
parent 70902029f8
commit 7787fa8f29
No known key found for this signature in database
GPG Key ID: BEAAE804EFD8E83A

View File

@ -782,10 +782,9 @@ def make_app(debug=get_bool_env(ENV_DEV)):
class StaticFileHandler(tornado.web.StaticFileHandler): class StaticFileHandler(tornado.web.StaticFileHandler):
def set_extra_headers(self, path): def set_extra_headers(self, path):
if debug: self.set_header(
self.set_header( "Cache-Control", "no-store, no-cache, must-revalidate, max-age=0"
"Cache-Control", "no-store, no-cache, must-revalidate, max-age=0" )
)
app_settings = { app_settings = {
"debug": debug, "debug": debug,