Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 68b5aa8

Browse files
committedMar 9, 2014
Update render_without_controller.rst
1 parent 8372382 commit 68b5aa8

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
@@ -105,7 +105,7 @@ other variables in your route, you can control exactly how your page is cached:
105105
<default key="_controller">FrameworkBundle:Template:template</default>
106106
<default key="template">AcmeBundle:Static:privacy.html.twig</default>
107107
<default key="maxAge">86400</default>
108-
<default key="sharedMaxAge">86400</default>
108+
<default key="sharedAge">86400</default>
109109
</route>
110110
</routes>
111111
@@ -119,15 +119,15 @@ other variables in your route, you can control exactly how your page is cached:
119119
'_controller' => 'FrameworkBundle:Template:template',
120120
'template' => 'AcmeBundle:Static:privacy.html.twig',
121121
'maxAge' => 86400,
122-
'sharedMaxAge' => 86400,
122+
'sharedAge' => 86400,
123123
)));
124124
125125
return $collection;
126126
127-
The ``maxAge`` and ``sharedMaxAge`` values are used to modify the Response
127+
The ``maxAge`` and ``sharedAge`` values are used to modify the Response
128128
object created in the controller. For more information on caching, see
129129
:doc:`/book/http_cache`.
130130

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

0 commit comments

Comments
 (0)
Please sign in to comment.