Skip to content

Add a list of default matched status code #229

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 2 commits into from
Jul 5, 2015
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
8 changes: 6 additions & 2 deletions Resources/doc/reference/configuration/match.rst
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,11 @@ regular expressions.

**type**: ``array``

A list of additional HTTP status codes of the response for which to also apply
the rule.
By default, a rule will only match cacheable status codes: 200, 203, 300, 301,
302, 404 and 410 (as described in the `RFC 7231`_).

`additional_cacheable_status` let you define a list of additional HTTP
status codes of the response for which to also apply the rule.

.. code-block:: yaml

Expand Down Expand Up @@ -164,3 +167,4 @@ inside the same rule.

.. _Trusting Proxies: http://symfony.com/doc/current/components/http_foundation/trusting_proxies.html
.. _controllers as services: http://symfony.com/doc/current/cookbook/controller/service.html
.. _RFC 7231: http://tools.ietf.org/html/rfc7231#page-48