Skip to content

Commit be3fe46

Browse files
committed
Reword
1 parent ad6903a commit be3fe46

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

reference/configuration/framework.rst

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,10 +188,20 @@ trust_x_sendfile_type_header
188188

189189
**type**: ``boolean`` **default**: ``false``
190190

191-
This determines whether to trust ``x-sendfile`` header for BinaryFileResponse. If enabled, the
191+
.. versionadded:: 6.1
192+
193+
The ``trust_x_sendfile_type_header`` option was introduced in Symfony 6.1.
194+
195+
``X-Sendfile`` is a special HTTP header that tells web servers to replace the
196+
response contents by the file that is defined in that header. This improves
197+
performance because files are no longer served by your application but directly
198+
by the web server.
199+
200+
This configuration option determines whether to trust ``x-sendfile`` header for
201+
BinaryFileResponse. If enabled, Symfony calls the
192202
:method:`BinaryFileResponse::trustXSendfileTypeHeader <Symfony\\Component\\HttpFoundation\\BinaryFileResponse::trustXSendfileTypeHeader>`
193-
method gets called automatically. It becomes the service container parameter
194-
named ``kernel.trust_x_sendfile_type_header``.
203+
method automatically. It becomes the service container parameter named
204+
``kernel.trust_x_sendfile_type_header``.
195205

196206
.. _reference-framework-trusted-headers:
197207

0 commit comments

Comments
 (0)