Skip to content

Commit 73f6c3f

Browse files
authored
Update .htaccess
1 parent 81882e7 commit 73f6c3f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pub/media/.htaccess

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ AddType image/png png
5353
AddType image/jpeg jpg
5454
AddType image/jpeg jpeg
5555
AddType image/webp webp
56+
AddType image/avif avif
5657

5758
# SVG
5859
AddType image/svg+xml svg
@@ -76,7 +77,7 @@ AddType application/xml xml
7677

7778
<IfModule mod_headers.c>
7879

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

@@ -113,7 +114,7 @@ AddType application/xml xml
113114
ExpiresByType application/javascript "access plus 1 year"
114115

115116
# Favicon, images, flash
116-
<FilesMatch \.(ico|gif|png|jpg|jpeg|swf|svg|webp)$>
117+
<FilesMatch \.(ico|gif|png|jpg|jpeg|swf|svg|webp|avif)$>
117118
ExpiresDefault "access plus 1 year"
118119
</FilesMatch>
119120
ExpiresByType image/gif "access plus 1 year"
@@ -122,6 +123,7 @@ AddType application/xml xml
122123
ExpiresByType image/jpeg "access plus 1 year"
123124
ExpiresByType image/svg+xml "access plus 1 year"
124125
ExpiresByType image/webp "access plus 1 year"
126+
ExpiresByType image/avif "access plus 1 year"
125127

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

0 commit comments

Comments
 (0)