From ce82678d1426429ac5d5e1d84cd2e0a9ac2da0e2 Mon Sep 17 00:00:00 2001 From: jenstandstad Date: Mon, 20 Apr 2026 18:31:13 +0200 Subject: [PATCH] Adding festinger --- plugins/festinger/festinger/main.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/plugins/festinger/festinger/main.py b/plugins/festinger/festinger/main.py index a473440..6028db2 100644 --- a/plugins/festinger/festinger/main.py +++ b/plugins/festinger/festinger/main.py @@ -2090,9 +2090,13 @@ ADMIN_HTML = """ """ -@app.get("/admin", response_class=HTMLResponse) -async def admin() -> str: - return ADMIN_HTML.format() +@app.get("/admin") +async def admin() -> Response: + return Response( + content=ADMIN_HTML.format(), + media_type="text/html", + headers={"Cache-Control": "no-store"}, + ) # ---------------------------------------------------------------------------