Skip to content

Commit

Permalink
Merge pull request #2074 from nodiscc/doc-apache-allow-svg
Browse files Browse the repository at this point in the history
doc: server configuration: allow accessing and caching SVG assets
  • Loading branch information
nodiscc committed Mar 1, 2024
2 parents 9eb0a1f + b3f63d0 commit 0a418b9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/md/Server-configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ MDPrivateKeys RSA 4096
</FilesMatch>
</Directory>
<FilesMatch ".*\.(?!(ico|css|js|gif|jpe?g|png|ttf|oet|woff2?)$)[^\.]*$">
<FilesMatch ".*\.(?!(ico|css|js|gif|jpe?g|png|svg|ttf|oet|woff2?)$)[^\.]*$">
Require all denied
</FilesMatch>
Expand All @@ -212,7 +212,7 @@ MDPrivateKeys RSA 4096
Require all granted
</Files>
<FilesMatch "\.(?:ico|css|js|gif|jpe?g|png|ttf|oet|woff2)$">
<FilesMatch "\.(?:ico|css|js|gif|jpe?g|png|svg|ttf|oet|woff2)$">
# allow client-side caching of static files
Header set Cache-Control "max-age=2628000, public, must-revalidate, proxy-revalidate"
</FilesMatch>
Expand Down Expand Up @@ -319,7 +319,7 @@ server {
}
# allow client-side caching of static files
location ~* \.(?:ico|css|js|gif|jpe?g|png|ttf|oet|woff2?)$ {
location ~* \.(?:ico|css|js|gif|jpe?g|png|svg|ttf|oet|woff2?)$ {
expires max;
add_header Cache-Control "public, must-revalidate, proxy-revalidate";
# HTTP 1.0 compatibility
Expand Down

0 comments on commit 0a418b9

Please sign in to comment.