This is an automated email from the ASF dual-hosted git repository.

wangzx pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/echarts-website.git


The following commit(s) were added to refs/heads/asf-site by this push:
     new 78ed85ec5 update .htaccess
78ed85ec5 is described below

commit 78ed85ec5f673827f1b4f992dcb30c73597fa2c5
Author: Zhongxiang Wang <[email protected]>
AuthorDate: Fri Feb 23 10:03:00 2024 +0800

    update .htaccess
---
 .htaccess | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/.htaccess b/.htaccess
index cab07997c..fc8585f12 100644
--- a/.htaccess
+++ b/.htaccess
@@ -42,9 +42,15 @@ RedirectMatch 404 /\.asf\.yaml
     </IfModule>
 </If>
 
+<IfModule mod_headers.c>
+    <FilesMatch ".+\.(?<imgExt>webp|apng|avif)$">
+        Header setifempty Content-Type "image/%{MATCH_imgExt}e"
+    </FilesMatch>
+</IfModule>
+
 <IfModule mod_rewrite.c>
   RewriteEngine On
-  
+
   RewriteCond "%{HTTP:Accept-Language}" ^zh [NC]
   RewriteRule ^/?(index\.html)?$ "/zh/index.html" [L,R=302]
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to