Skip to content

Commit da50d9b

Browse files
94noniweaverryan
authored andcommitted
Update render_without_controller.rst
1 parent c66cd74 commit da50d9b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cookbook/templating/render_without_controller.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ other variables in your route, you can control exactly how your page is cached:
109109
<default key="_controller">FrameworkBundle:Template:template</default>
110110
<default key="template">AcmeBundle:Static:privacy.html.twig</default>
111111
<default key="maxAge">86400</default>
112-
<default key="sharedMaxAge">86400</default>
112+
<default key="sharedAge">86400</default>
113113
</route>
114114
</routes>
115115
@@ -123,15 +123,15 @@ other variables in your route, you can control exactly how your page is cached:
123123
'_controller' => 'FrameworkBundle:Template:template',
124124
'template' => 'AcmeBundle:Static:privacy.html.twig',
125125
'maxAge' => 86400,
126-
'sharedMaxAge' => 86400,
126+
'sharedAge' => 86400,
127127
)));
128128
129129
return $collection;
130130
131-
The ``maxAge`` and ``sharedMaxAge`` values are used to modify the Response
131+
The ``maxAge`` and ``sharedAge`` values are used to modify the Response
132132
object created in the controller. For more information on caching, see
133133
:doc:`/book/http_cache`.
134134

135135
There is also a ``private`` variable (not shown here). By default, the Response
136-
will be made public, as long as ``maxAge`` or ``sharedMaxAge`` are passed.
136+
will be made public, as long as ``maxAge`` or ``sharedAge`` are passed.
137137
If set to ``true``, the Response will be marked as private.

0 commit comments

Comments
 (0)