Skip to content

Commit

Permalink
Update .htaccess
Browse files Browse the repository at this point in the history
  • Loading branch information
in-session authored Mar 9, 2021
1 parent 73f6c3f commit 7e4e074
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pub/static/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ AddType image/png png
AddType image/jpeg jpg
AddType image/jpeg jpeg
AddType image/webp webp
AddType image/avif avif

# SVG
AddType image/svg+xml svg
Expand All @@ -73,7 +74,7 @@ AddType application/xml xml

<IfModule mod_headers.c>

<FilesMatch .*\.(ico|jpg|jpeg|png|gif|svg|webp|js|css|swf|eot|ttf|otf|woff|woff2|html|json)$>
<FilesMatch .*\.(ico|jpg|jpeg|png|gif|svg|webp|avif|js|css|swf|eot|ttf|otf|woff|woff2|html|json)$>
Header append Cache-Control public
</FilesMatch>

Expand Down Expand Up @@ -112,7 +113,7 @@ AddType application/xml xml
ExpiresByType application/json "access plus 1 year"

# Favicon, images, flash
<FilesMatch \.(ico|gif|png|jpg|jpeg|swf|svg|webp)$>
<FilesMatch \.(ico|gif|png|jpg|jpeg|swf|svg|webp|avif)$>
ExpiresDefault "access plus 1 year"
</FilesMatch>
ExpiresByType image/gif "access plus 1 year"
Expand All @@ -121,6 +122,7 @@ AddType application/xml xml
ExpiresByType image/jpeg "access plus 1 year"
ExpiresByType image/svg+xml "access plus 1 year"
ExpiresByType image/webp "access plus 1 year"
ExpiresByType image/avif "access plus 1 year"

# Fonts
<FilesMatch \.(eot|ttf|otf|svg|woff|woff2)$>
Expand Down

0 comments on commit 7e4e074

Please sign in to comment.