From 8bb85b52c05602edee7d44d75e4d371d44680ee7 Mon Sep 17 00:00:00 2001 From: e-five <146029455+e-five256@users.noreply.github.com> Date: Sat, 23 Mar 2024 08:26:10 -0400 Subject: [PATCH] escape full stop in location regex --- Resources/doc/optimizations/avoid-redirects.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Resources/doc/optimizations/avoid-redirects.rst b/Resources/doc/optimizations/avoid-redirects.rst index f6bafc277..5f6c260cb 100644 --- a/Resources/doc/optimizations/avoid-redirects.rst +++ b/Resources/doc/optimizations/avoid-redirects.rst @@ -33,7 +33,7 @@ configure your webserver to route requests for missing images to Symfony. try_files $uri $uri/ /index.php?$query_string; } - location ~* .(js|jpg|jpeg|gif|png|css|tgz|gz|rar|bz2|doc|pdf|ppt|tar|wav|bmp|rtf|swf|ico|flv|txt|woff|woff2|svg)$ { + location ~* \.(js|jpg|jpeg|gif|png|css|tgz|gz|rar|bz2|doc|pdf|ppt|tar|wav|bmp|rtf|swf|ico|flv|txt|woff|woff2|svg)$ { expires 30d; add_header Pragma "public"; add_header Cache-Control "public";