Skip to content

Commit 9e4f7ab

Browse files
zairigimadHeahDude
authored andcommitted
[Templating] added the private parameter in the TemplateController example
1 parent b244724 commit 9e4f7ab

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

templates.rst

+8
Original file line numberDiff line numberDiff line change
@@ -476,6 +476,9 @@ provided by Symfony:
476476
# special options defined by Symfony to set the page cache
477477
maxAge: 86400
478478
sharedAge: 86400
479+
480+
# whether or not caching should apply for client caches only
481+
private: true
479482
480483
.. code-block:: xml
481484
@@ -494,6 +497,8 @@ provided by Symfony:
494497
<!-- special options defined by Symfony to set the page cache -->
495498
<default key="maxAge">86400</default>
496499
<default key="sharedAge">86400</default>
500+
<!-- Whether or not caching should apply for client caches only -->
501+
<default key="private">true</default>
497502
</route>
498503
</routes>
499504
@@ -513,6 +518,9 @@ provided by Symfony:
513518
// special options defined by Symfony to set the page cache
514519
'maxAge' => 86400,
515520
'sharedAge' => 86400,
521+
522+
// whether or not caching should apply for client caches only
523+
'private' => true,
516524
])
517525
;
518526
};

0 commit comments

Comments
 (0)