diff --git a/app.py b/app.py index 8ae8175..a5b7ca3 100644 --- a/app.py +++ b/app.py @@ -81,7 +81,7 @@ async def no_store_static(request, call_next): skipping the cache entirely is fine and avoids "my change isn't showing" bugs.""" response = await call_next(request) path = request.url.path - pages = (BASE, f"{BASE}/", f"{BASE}/calendar", f"{BASE}/day", f"{BASE}/legend") + pages = (BASE, f"{BASE}/", f"{BASE}/calendar", f"{BASE}/day", f"{BASE}/compare", f"{BASE}/legend") if path.endswith((".js", ".css", ".html")) or path in pages: response.headers["Cache-Control"] = "no-store, must-revalidate" return response @@ -437,6 +437,7 @@ app.add_api_route(BASE, lambda: RedirectResponse(url=f"{BASE}/"), methods=["GET" app.add_api_route(f"{BASE}/", lambda: _page("index.html"), methods=["GET"], include_in_schema=False) app.add_api_route(f"{BASE}/calendar", lambda: _page("calendar.html"), methods=["GET"], include_in_schema=False) app.add_api_route(f"{BASE}/day", lambda: _page("day.html"), methods=["GET"], include_in_schema=False) +app.add_api_route(f"{BASE}/compare", lambda: _page("compare.html"), methods=["GET"], include_in_schema=False) app.add_api_route(f"{BASE}/legend", lambda: _page("legend.html"), methods=["GET"], include_in_schema=False) # Everything else under BASE (app.js, style.css, nav.js, …) is a static asset.