File tree 4 files changed +6
-2
lines changed
4 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 9
9
10
10
<IfModule mod_setenvif.c>
11
11
<IfModule mod_headers.c>
12
- <FilesMatch "\.(bmp|cur|gif|ico|jpe?g|a?png|svgz?|webp)$">
12
+ <FilesMatch "\.(avifs?| bmp|cur|gif|ico|jpe?g|a?png|svgz?|webp)$">
13
13
SetEnvIf Origin ":" IS_CORS
14
14
Header set Access-Control-Allow-Origin "*" env=IS_CORS
15
15
</FilesMatch>
Original file line number Diff line number Diff line change 39
39
40
40
AddType audio/mp4 f4a f4b m4a
41
41
AddType audio/ogg oga ogg opus
42
+ AddType image/avif avif
43
+ AddType image/avif-sequence avifs
42
44
AddType image/bmp bmp
43
45
AddType image/svg+xml svg svgz
44
46
AddType image/webp webp
Original file line number Diff line number Diff line change 69
69
70
70
ExpiresByType audio/ogg "access plus 1 month"
71
71
ExpiresByType image/apng "access plus 1 month"
72
+ ExpiresByType image/avif "access plus 1 month"
73
+ ExpiresByType image/avif-sequence "access plus 1 month"
72
74
ExpiresByType image/bmp "access plus 1 month"
73
75
ExpiresByType image/gif "access plus 1 month"
74
76
ExpiresByType image/jpeg "access plus 1 month"
Original file line number Diff line number Diff line change 12
12
<IfModule mod_rewrite.c>
13
13
RewriteEngine On
14
14
RewriteCond %{REQUEST_FILENAME} !-f
15
- RewriteRule ^(.+)\.(\w+)\.(bmp|css|cur|gif|ico|jpe?g|m?js|a?png|svgz?|webp|webmanifest)$ $1.$3 [L]
15
+ RewriteRule ^(.+)\.(\w+)\.(avifs?| bmp|css|cur|gif|ico|jpe?g|m?js|a?png|svgz?|webp|webmanifest)$ $1.$3 [L]
16
16
</IfModule>
You can’t perform that action at this time.
0 commit comments