Mark HTML5 responses as dynamic
CI / python (push) Has been cancelled
CI / rust (push) Has been cancelled

This commit is contained in:
2026-05-17 12:15:37 +03:00
parent b0409044eb
commit c90d708f21
2 changed files with 13 additions and 3 deletions
+5 -1
View File
@@ -8442,7 +8442,11 @@ def _html5_sse_headers() -> dict[str, str]:
def _html5_response(fragment: str) -> Response:
return Response(fragment, media_type="text/html; charset=utf-8")
return Response(
fragment,
media_type="text/html; charset=utf-8",
headers={"Cache-Control": "no-cache, no-transform"},
)
def _html5_sse_response(content: Any) -> StreamingResponse: