mirror of
https://github.com/liamcottle/reticulum-meshchat.git
synced 2026-11-30 11:56:21 -05:00
don't allow browser to store page in cache, otherwise new app versions may get stale ui
This commit is contained in:
parent
85032e1716
commit
8fb1362530
1 changed files with 4 additions and 1 deletions
|
|
@ -198,7 +198,10 @@ class ReticulumMeshChat:
|
|||
# serve index.html
|
||||
@routes.get("/")
|
||||
async def index(request):
|
||||
return web.FileResponse(path=get_file_path("public/index.html"))
|
||||
return web.FileResponse(path=get_file_path("public/index.html"), headers={
|
||||
# don't allow browser to store page in cache, otherwise new app versions may get stale ui
|
||||
"Cache-Control": "no-cache, no-store",
|
||||
})
|
||||
|
||||
# serve ping
|
||||
@routes.get("/api/v1/status")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue