Skip to content

[HttpFoundation] Add FrankenPHP docs for X-Sendfile #20885

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 14, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion components/http_foundation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -854,7 +854,7 @@ Alternatively, if you are serving a static file, you can use a

The ``BinaryFileResponse`` will automatically handle ``Range`` and
``If-Range`` headers from the request. It also supports ``X-Sendfile``
(see for `nginx`_ and `Apache`_). To make use of it, you need to determine
(see for `FrankenPHP`_, `nginx`_ and `Apache`_). To make use of it, you need to determine
whether or not the ``X-Sendfile-Type`` header should be trusted and call
:method:`Symfony\\Component\\HttpFoundation\\BinaryFileResponse::trustXSendfileTypeHeader`
if it should::
Expand Down Expand Up @@ -1061,6 +1061,7 @@ Learn More
/session
/http_cache/*

.. _FrankenPHP: https://frankenphp.dev/docs/x-sendfile/
.. _nginx: https://mattbrictson.com/blog/accelerated-rails-downloads
.. _Apache: https://tn123.org/mod_xsendfile/
.. _`JSON Hijacking`: https://haacked.com/archive/2009/06/25/json-hijacking.aspx/
Expand Down