diff --git a/esphome/dashboard/dashboard.py b/esphome/dashboard/dashboard.py index f6eb079430..b416b00e60 100644 --- a/esphome/dashboard/dashboard.py +++ b/esphome/dashboard/dashboard.py @@ -1328,9 +1328,11 @@ def make_app(debug=get_bool_env(ENV_DEV)): if "favicon.ico" in path: self.set_header("Cache-Control", "max-age=84600, public") else: - self.set_header( - "Cache-Control", "no-store, no-cache, must-revalidate, max-age=0" - ) + if debug: + self.set_header( + "Cache-Control", + "no-store, no-cache, must-revalidate, max-age=0", + ) app_settings = { "debug": debug,