Skip to content

Commit c4bc0c1

Browse files
authored
Update .htaccess
1 parent 1e5cf5b commit c4bc0c1

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
@@ -54,6 +54,7 @@ AddType image/jpeg jpg
5454
AddType image/jpeg jpeg
5555
AddType image/webp webp
5656
AddType image/avif avif
57+
AddType image/avif-sequence avifs
5758

5859
# SVG
5960
AddType image/svg+xml svg
@@ -77,7 +78,7 @@ AddType application/xml xml
7778

7879
<IfModule mod_headers.c>
7980

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

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

116117
# Favicon, images, flash
117-
<FilesMatch \.(ico|gif|png|jpg|jpeg|swf|svg|webp|avif)$>
118+
<FilesMatch \.(ico|gif|png|jpg|jpeg|swf|svg|webp|avif|avifs?)$>
118119
ExpiresDefault "access plus 1 year"
119120
</FilesMatch>
120121
ExpiresByType image/gif "access plus 1 year"
@@ -124,6 +125,7 @@ AddType application/xml xml
124125
ExpiresByType image/svg+xml "access plus 1 year"
125126
ExpiresByType image/webp "access plus 1 year"
126127
ExpiresByType image/avif "access plus 1 year"
128+
ExpiresByType image/avif-sequence "access plus 1 year"
127129

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

0 commit comments

Comments
 (0)