优化
This commit is contained in:
parent
adc461a580
commit
d958828608
@ -82,6 +82,7 @@ public function stream(): StreamedResponse
|
|||||||
flush();
|
flush();
|
||||||
}, false);
|
}, false);
|
||||||
});
|
});
|
||||||
|
|
||||||
$response->headers->set('Content-Type', 'text/event-stream');
|
$response->headers->set('Content-Type', 'text/event-stream');
|
||||||
$response->headers->set('X-Accel-Buffering', 'no');
|
$response->headers->set('X-Accel-Buffering', 'no');
|
||||||
$response->headers->set('Cache-Control', 'no-cache');
|
$response->headers->set('Cache-Control', 'no-cache');
|
||||||
|
Loading…
Reference in New Issue
Block a user