mirror of
https://github.com/esphome/esphome.git
synced 2024-11-25 08:28:12 +01:00
Disable caching for binary download (#3054)
This commit is contained in:
parent
2a8668ea60
commit
52d2f62a57
1 changed files with 1 additions and 0 deletions
|
@ -445,6 +445,7 @@ class DownloadBinaryRequestHandler(BaseHandler):
|
|||
|
||||
self.set_header("Content-Type", "application/octet-stream")
|
||||
self.set_header("Content-Disposition", f'attachment; filename="{filename}"')
|
||||
self.set_header("Cache-Control", "no-cache")
|
||||
if not Path(path).is_file():
|
||||
self.send_error(404)
|
||||
return
|
||||
|
|
Loading…
Reference in a new issue