You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/DependencyInjection/Configuration.php
+5-1
Original file line number
Diff line number
Diff line change
@@ -277,6 +277,10 @@ private function addCacheControlSection(ArrayNodeDefinition $rootNode): void
277
277
->end()
278
278
->end()
279
279
->end()
280
+
->scalarNode('ttl_header')
281
+
->defaultValue('X-Reverse-Proxy-TTL')
282
+
->info('Specify the header name to use with the cache_control.reverse_proxy_ttl setting')
283
+
->end()
280
284
->arrayNode('rules')
281
285
->prototype('array')
282
286
->children();
@@ -330,7 +334,7 @@ private function addCacheControlSection(ArrayNodeDefinition $rootNode): void
330
334
->end()
331
335
->scalarNode('reverse_proxy_ttl')
332
336
->defaultNull()
333
-
->info('Specify an X-Reverse-Proxy-TTL header with a time in seconds for a caching proxy under your control.')
337
+
->info('Specify a custom time to live in seconds for your caching proxy. This value is sent in the custom header configured in cache_control.ttl_header.')
0 commit comments