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
->thenInvalid('You can\'t provide config option "respect_cache_headers" and "respect_response_cache_directives" simultaniously. Use "respect_response_cache_directives" instead.')
@trigger_error('The option "respect_cache_headers" is deprecated since version 1.3 and will be removed in 2.0. Use "respect_response_cache_directives" instead.', E_USER_DEPRECATED);
->thenInvalid('You can\'t provide config option "respect_cache_headers" and "respect_response_cache_directives" simultaniously. Use "respect_response_cache_directives" instead.')
547
+
->end()
548
+
->children()
549
+
->scalarNode('cache_key_generator')
550
+
->info('This must be a service id to a service implementing '.CacheKeyGenerator::class)
551
+
->end()
552
+
->integerNode('cache_lifetime')
553
+
->info('The minimum time we should store a cache item')
554
+
->end()
555
+
->integerNode('default_ttl')
556
+
->info('The default max age of a Response')
557
+
->end()
558
+
->enumNode('hash_algo')
559
+
->info('Hashing algorithm to use')
560
+
->values(hash_algos())
561
+
->cannotBeEmpty()
562
+
->end()
563
+
->arrayNode('methods')
564
+
->info('Which request methods to cache')
565
+
->defaultValue(['GET', 'HEAD'])
566
+
->prototype('scalar')
567
+
->validate()
568
+
->ifTrue(function ($v) {
569
+
/* RFC7230 sections 3.1.1 and 3.2.6 except limited to uppercase characters. */
->info('Whether we should care about cache headers or not [DEPRECATED]')
578
+
->values([null, true, false])
579
+
->beforeNormalization()
580
+
->always(function ($v) {
581
+
@trigger_error('The option "respect_cache_headers" is deprecated since version 1.3 and will be removed in 2.0. Use "respect_response_cache_directives" instead.', E_USER_DEPRECATED);
0 commit comments