Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[HttpKernel] Documenttrace_level andtrace_header config options inHttpCache#11340

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
wouterj merged 1 commit intosymfony:masterfrommpdude:http-cache-header-docs
Apr 7, 2019
Merged
Changes fromall 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
21 changes: 20 additions & 1 deletionhttp_cache.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -155,7 +155,26 @@ For a full list of the options and their meaning, see the

When you're in debug mode (the second argument of ``Kernel`` constructor in the
front controller is ``true``), Symfony automatically adds an ``X-Symfony-Cache``
header to the response. Use this to get information about cache hits and misses.
header to the response. You can also use the ``trace_level`` config
option and set it to either ``none``, ``short`` or ``full`` to
add this information.

``short`` will add the information for the master request only.
It's written in a concise way that makes it easy to record the
information in your server log files. For example, in Apache you can
use ``%{X-Symfony-Cache}o`` in ``LogFormat`` format statements.
This information can be used to extract general information about
cache efficiency of your routes.

.. tip::

You can change the name of the header used for the trace
information using the ``trace_header`` config option.

.. versionadded:: 4.3

The ``trace_level`` and ``trace_header`` configuration options
were introduced in Symfony 4.3.

.. _http-cache-symfony-versus-varnish:

Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp