You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by wa...@apache.org on 2021/09/06 09:52:54 UTC
[echarts-website] branch asf-site updated: revert changes
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 c5dda59 revert changes
c5dda59 is described below
commit c5dda59b4900a8d4fe8f176ca48cd729a1db2123
Author: Zhongxiang.Wang <yh...@all-my-life.cn>
AuthorDate: Mon Sep 6 17:52:48 2021 +0800
revert changes
---
.htaccess | 10 +++-------
1 file changed, 3 insertions(+), 7 deletions(-)
diff --git a/.htaccess b/.htaccess
index 1c4017b..e80bf66 100644
--- a/.htaccess
+++ b/.htaccess
@@ -6,10 +6,8 @@ Header set Access-Control-Allow-Origin "https://echarts.apache.org"
Header set Access-Control-Allow-Methods: "*"
Header set Access-Control-Allow-Headers: "*"
-Header append Vary: "Accept-Language"
-
<IfModule mod_expires.c>
- ExpiresActive off
+ ExpiresActive on
ExpiresByType text/html "access plus 1 hour"
ExpiresByType image/png "access plus 1 hour"
@@ -25,17 +23,15 @@ Header append Vary: "Accept-Language"
RewriteEngine On
RewriteCond "%{HTTP:Accept-Language}" ^zh [NC]
-RewriteRule ^/?(index[.]html)?$ "/zh/index.html" [L,R=302,E=NO_CACHE:1]
+RewriteRule ^/?(index[.]html)?$ "/zh/index.html" [L,R=302]
RewriteCond "%{HTTP:Accept-Language}" ^en [NC]
-RewriteRule ^/?(index[.]html)?$ "/en/index.html" [L,R=302,E=NO_CACHE:1]
+RewriteRule ^/?(index[.]html)?$ "/en/index.html" [L,R=302]
RewriteRule ^/?(index[.]html)?$ "/en/index.html" [L,R=302]
RewriteRule ^/?next\/?(.*) "/$1" [L,R=301]
-Header always set Cache-Control "no-store, no-cache, must-revalidate" env=NO_CACHE
-Header always set Expires "Thu, 01 Dec 1994 16:00:00 GMT" env=NO_CACHE
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org