Skip to content

Commit

Permalink
Add APNG file extension and MIME type
Browse files Browse the repository at this point in the history
Fix #138
  • Loading branch information
LeoColomb committed Jul 30, 2019
1 parent 5bbc0a1 commit ad25d31
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/cross-origin/images.conf
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<IfModule mod_setenvif.c>
<IfModule mod_headers.c>
<FilesMatch "\.(bmp|cur|gif|ico|jpe?g|png|svgz?|webp)$">
<FilesMatch "\.(bmp|cur|gif|ico|jpe?g|a?png|svgz?|webp)$">
SetEnvIf Origin ":" IS_CORS
Header set Access-Control-Allow-Origin "*" env=IS_CORS
</FilesMatch>
Expand Down
1 change: 1 addition & 0 deletions src/web_performance/cache_expiration.conf
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
# Media files

ExpiresByType audio/ogg "access plus 1 month"
ExpiresByType image/apng "access plus 1 month"
ExpiresByType image/bmp "access plus 1 month"
ExpiresByType image/gif "access plus 1 month"
ExpiresByType image/jpeg "access plus 1 month"
Expand Down
2 changes: 1 addition & 1 deletion src/web_performance/filename-based_cache_busting.conf
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.+)\.(\w+)\.(bmp|css|cur|gif|ico|jpe?g|m?js|png|svgz?|webp|webmanifest)$ $1.$3 [L]
RewriteRule ^(.+)\.(\w+)\.(bmp|css|cur|gif|ico|jpe?g|m?js|a?png|svgz?|webp|webmanifest)$ $1.$3 [L]
</IfModule>

0 comments on commit ad25d31

Please sign in to comment.