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 8474be7ca try FilesMatch to add content-type header 8474be7ca is described below commit 8474be7ca8f3656b0c9b16c986f5dcb893ff1061 Author: Zhongxiang Wang <y...@all-my-life.cn> AuthorDate: Fri Feb 23 09:29:10 2024 +0800 try FilesMatch to add content-type header --- .htaccess | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.htaccess b/.htaccess index 20ebde739..a9abb18e7 100644 --- a/.htaccess +++ b/.htaccess @@ -1,9 +1,5 @@ AddDefaultCharset UTF-8 -AddType image/webp .webp -AddType image/avif .avif -AddType image/apng .apng - RedirectMatch 404 /\.git RedirectMatch 404 /\.gitignore RedirectMatch 404 /\.htaccess @@ -46,6 +42,12 @@ RedirectMatch 404 /\.asf\.yaml </IfModule> </If> +<IfModule mod_headers.c> + <FilesMatch ".+\.(?<imgExt>webp|apng|avif)$"> + Header setifempty Content-Type "image/%{env:MATCH_IMGEXT}" + </FilesMatch> +</IfModule> + <IfModule mod_rewrite.c> RewriteEngine On --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org