Mark HTML5 responses as dynamic
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user