diff --git a/app/main.py b/app/main.py index 9d5f64d..a484728 100644 --- a/app/main.py +++ b/app/main.py @@ -966,7 +966,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 21f2088..d5944f1 100644 --- a/app/static/index.html +++ b/app/static/index.html @@ -5,6 +5,8 @@ OSINT Dashboard + +