File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -188,10 +188,20 @@ trust_x_sendfile_type_header
188
188
189
189
**type **: ``boolean `` **default **: ``false ``
190
190
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
192
202
: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 ``.
195
205
196
206
.. _reference-framework-trusted-headers :
197
207
You can’t perform that action at this time.
0 commit comments