From 2ac4dce1a1643f24456b8a076525b1667849ea72 Mon Sep 17 00:00:00 2001 From: Florent Morselli Date: Tue, 6 Feb 2024 22:55:30 +0100 Subject: [PATCH] Font cache support --- src/DependencyInjection/Configuration.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/DependencyInjection/Configuration.php b/src/DependencyInjection/Configuration.php index 5cb5f62..248b331 100644 --- a/src/DependencyInjection/Configuration.php +++ b/src/DependencyInjection/Configuration.php @@ -150,6 +150,11 @@ private function setupServiceWorker(ArrayNodeDefinition $node): void ->info('The regex to match the images.') ->example('/\.(ico|png|jpe?g|gif|svg|webp|bmp)$/') ->end() + ->scalarNode('static_regex') + ->defaultValue('/\.(css|js|json|xml|txt|woff2|ttf|eot|otf|map|webmanifest)$/') + ->info('The regex to match the static files.') + ->example('/\.(css|js|json|xml|txt|woff2|ttf|eot|otf|map|webmanifest)$/') + ->end() ->integerNode('max_image_cache_entries') ->defaultValue(60) ->info('The maximum number of entries in the image cache.')