Skip to content

Commit ad25d31

Browse files
committed
Add APNG file extension and MIME type
Fix #138
1 parent 5bbc0a1 commit ad25d31

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

src/cross-origin/images.conf

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
<IfModule mod_setenvif.c>
1111
<IfModule mod_headers.c>
12-
<FilesMatch "\.(bmp|cur|gif|ico|jpe?g|png|svgz?|webp)$">
12+
<FilesMatch "\.(bmp|cur|gif|ico|jpe?g|a?png|svgz?|webp)$">
1313
SetEnvIf Origin ":" IS_CORS
1414
Header set Access-Control-Allow-Origin "*" env=IS_CORS
1515
</FilesMatch>

src/web_performance/cache_expiration.conf

+1
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@
6969
# Media files
7070

7171
ExpiresByType audio/ogg "access plus 1 month"
72+
ExpiresByType image/apng "access plus 1 month"
7273
ExpiresByType image/bmp "access plus 1 month"
7374
ExpiresByType image/gif "access plus 1 month"
7475
ExpiresByType image/jpeg "access plus 1 month"

src/web_performance/filename-based_cache_busting.conf

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@
1313
<IfModule mod_rewrite.c>
1414
RewriteEngine On
1515
RewriteCond %{REQUEST_FILENAME} !-f
16-
RewriteRule ^(.+)\.(\w+)\.(bmp|css|cur|gif|ico|jpe?g|m?js|png|svgz?|webp|webmanifest)$ $1.$3 [L]
16+
RewriteRule ^(.+)\.(\w+)\.(bmp|css|cur|gif|ico|jpe?g|m?js|a?png|svgz?|webp|webmanifest)$ $1.$3 [L]
1717
</IfModule>

0 commit comments

Comments
 (0)