Skip to content

Commit

Permalink
Merge pull request #1578 from e-five256/e5/avoid-redirect-regex
Browse files Browse the repository at this point in the history
Avoid redirects documentation - escape full stop in location regex
  • Loading branch information
dbu committed Mar 25, 2024
2 parents d68559a + 8bb85b5 commit 336fa80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Resources/doc/optimizations/avoid-redirects.rst
Expand Up @@ -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";
Expand Down

0 comments on commit 336fa80

Please sign in to comment.