diff --git a/home-apps/demo-service/service.py b/home-apps/demo-service/service.py index 7a09f43..d366306 100644 --- a/home-apps/demo-service/service.py +++ b/home-apps/demo-service/service.py @@ -175,7 +175,8 @@ async def site_content(path: str = "", request: Request = None): resp.headers["Cache-Control"] = "no-store" return resp # HTML files render inline; others (CSS, JS, images) are served as files - if target.suffix == ".html": + # .draft and .bak are hidden HTML fallbacks (e.g. .index.html.draft) + if target.suffix == ".html" or target.suffix in (".draft", ".bak"): return HTMLResponse(target.read_text()) resp = FileResponse(target) resp.headers["Content-Disposition"] = "inline"