File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -468,8 +468,12 @@ represented by a PHP callable instead of a string::
468468 you must call ``ob_flush() `` before ``flush() ``.
469469
470470 Additionally, PHP isn't the only layer that can buffer output. Your web
471- server might also buffer based on its configuration. What's more, if you
472- use FastCGI, buffering can't be disabled at all.
471+ server might also buffer based on its configuration. Some servers, such as
472+ Nginx, let you disable buffering at config level or adding a special HTTP
473+ header in the response::
474+
475+ // disables FastCGI buffering in Nginx only for this response
476+ $response->headers->set('X-Accel-Buffering', 'no')
473477
474478.. _component-http-foundation-serving-files :
475479
You can’t perform that action at this time.
0 commit comments