diff --git a/app/main.py b/app/main.py index d41f877..2969af0 100644 --- a/app/main.py +++ b/app/main.py @@ -1003,7 +1003,12 @@ async def list_news_summaries( @app.get("/", response_class=HTMLResponse) async def index(): - return FileResponse(str(STATIC_DIR / "index.html")) + # Never let browsers serve a stale copy of the app shell: no Cache-Control + # means heuristic caching, and a stale index.html froze older bugs in users' + # tabs after deploys. Revalidate every load (ETag still returns 304). + resp = FileResponse(str(STATIC_DIR / "index.html")) + resp.headers["Cache-Control"] = "no-cache" + return resp # ── NASA GIBS basemap map tab ───────────────────────────────────────────── diff --git a/app/static/index.html b/app/static/index.html index 986b34c..4c1efae 100644 --- a/app/static/index.html +++ b/app/static/index.html @@ -8,6 +8,8 @@ + +