Skip to content

Commit a716f6c

Browse files
committed
Merge pull request #229 from tgalopin/patch-1
Add a list of default matched status code
2 parents 587c374 + e4f8285 commit a716f6c

File tree

1 file changed

+6
-2
lines changed
  • Resources/doc/reference/configuration

1 file changed

+6
-2
lines changed

Resources/doc/reference/configuration/match.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,11 @@ regular expressions.
128128

129129
**type**: ``array``
130130

131-
A list of additional HTTP status codes of the response for which to also apply
132-
the rule.
131+
By default, a rule will only match cacheable status codes: 200, 203, 300, 301,
132+
302, 404 and 410 (as described in the `RFC 7231`_).
133+
134+
`additional_cacheable_status` let you define a list of additional HTTP
135+
status codes of the response for which to also apply the rule.
133136

134137
.. code-block:: yaml
135138
@@ -164,3 +167,4 @@ inside the same rule.
164167

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

0 commit comments

Comments
 (0)