@@ -142,6 +142,7 @@ Configuration
142
142
143
143
* `session `_
144
144
145
+ * `cache_limiter `_
145
146
* `cookie_domain `_
146
147
* `cookie_httponly `_
147
148
* `cookie_lifetime `_
@@ -867,6 +868,50 @@ cookie_path
867
868
This determines the path to set in the session cookie. By default, it will
868
869
use ``/ ``.
869
870
871
+ cache_limiter
872
+ .............
873
+
874
+ **type **: ``string `` or ``int `` **default **: ``'' ``
875
+
876
+ If set to ``0 ``, Symfony won't set any particular header related to the cache
877
+ and it will rely on the cache control method configured in the
878
+ `session.cache-limiter `_ PHP.ini option.
879
+
880
+ Unlike the other session options, ``cache_limiter `` is set as a regular
881
+ :doc: `container parameter </service_container/parameters >`:
882
+
883
+ .. configuration-block ::
884
+
885
+ .. code-block :: yaml
886
+
887
+ # app/config/services.yml
888
+ parameters :
889
+ session.storage.options :
890
+ cache_limiter : 0
891
+
892
+ .. code-block :: xml
893
+
894
+ <!-- app/config/services.xml -->
895
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
896
+ <container xmlns =" http://symfony.com/schema/dic/services"
897
+ xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
898
+ xsi : schemaLocation =" http://symfony.com/schema/dic/services
899
+ https://symfony.com/schema/dic/services/services-1.0.xsd" >
900
+
901
+ <parameters >
902
+ <parameter key =" session.storage.options" type =" collection" >
903
+ <parameter key =" cache_limiter" >0</parameter >
904
+ </parameter >
905
+ </parameters >
906
+ </container >
907
+
908
+ .. code-block :: php
909
+
910
+ // app/config/services.php
911
+ $container->setParameter('session.storage.options', [
912
+ 'cache_limiter' => 0,
913
+ ]);
914
+
870
915
cookie_domain
871
916
.............
872
917
@@ -2332,3 +2377,4 @@ to know their differences.
2332
2377
.. _`blue/green deployment` : http://martinfowler.com/bliki/BlueGreenDeployment.html
2333
2378
.. _`gulp-rev` : https://www.npmjs.com/package/gulp-rev
2334
2379
.. _`webpack-manifest-plugin` : https://www.npmjs.com/package/webpack-manifest-plugin
2380
+ .. _`session.cache-limiter` : https://www.php.net/manual/en/session.configuration.php#ini.session.cache-limiter
0 commit comments