From c66cd747d0a7adcf1ca0e1b4ff541bc9cfecd30a Mon Sep 17 00:00:00 2001 From: Antoine Date: Wed, 5 Mar 2014 12:07:08 +0100 Subject: [PATCH 1/2] Update render_without_controller.rst --- cookbook/templating/render_without_controller.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbook/templating/render_without_controller.rst b/cookbook/templating/render_without_controller.rst index c718dfdea5e..ae79a0d85b7 100644 --- a/cookbook/templating/render_without_controller.rst +++ b/cookbook/templating/render_without_controller.rst @@ -95,7 +95,7 @@ other variables in your route, you can control exactly how your page is cached: _controller: FrameworkBundle:Template:template template: 'AcmeBundle:Static:privacy.html.twig' maxAge: 86400 - sharedMaxAge: 86400 + sharedAge: 86400 .. code-block:: xml From da50d9b2752f31109b6ab0b10cc438c012ddd820 Mon Sep 17 00:00:00 2001 From: Antoine Date: Sun, 9 Mar 2014 14:02:18 +0100 Subject: [PATCH 2/2] Update render_without_controller.rst --- cookbook/templating/render_without_controller.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cookbook/templating/render_without_controller.rst b/cookbook/templating/render_without_controller.rst index ae79a0d85b7..72cbdacc563 100644 --- a/cookbook/templating/render_without_controller.rst +++ b/cookbook/templating/render_without_controller.rst @@ -109,7 +109,7 @@ other variables in your route, you can control exactly how your page is cached: FrameworkBundle:Template:template AcmeBundle:Static:privacy.html.twig 86400 - 86400 + 86400 @@ -123,15 +123,15 @@ other variables in your route, you can control exactly how your page is cached: '_controller' => 'FrameworkBundle:Template:template', 'template' => 'AcmeBundle:Static:privacy.html.twig', 'maxAge' => 86400, - 'sharedMaxAge' => 86400, + 'sharedAge' => 86400, ))); return $collection; -The ``maxAge`` and ``sharedMaxAge`` values are used to modify the Response +The ``maxAge`` and ``sharedAge`` values are used to modify the Response object created in the controller. For more information on caching, see :doc:`/book/http_cache`. There is also a ``private`` variable (not shown here). By default, the Response -will be made public, as long as ``maxAge`` or ``sharedMaxAge`` are passed. +will be made public, as long as ``maxAge`` or ``sharedAge`` are passed. If set to ``true``, the Response will be marked as private.