Skip to content

Commit

Permalink
web: disable cache on index
Browse files Browse the repository at this point in the history
  • Loading branch information
hoang-rio committed Dec 9, 2024
1 parent f293176 commit 4d20288
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web_viewer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

async def http_handler(_: web.Request):
index_file_path = path.join(path.dirname(__file__), 'public', 'index.html')
return web.FileResponse(index_file_path)
return web.FileResponse(index_file_path, headers={"expires": "0", "cache-control": "no-cache"})

ws_clients: list[web.WebSocketResponse] = []
last_inverter_data: str = '{}'
Expand Down

0 comments on commit 4d20288

Please sign in to comment.