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 08:53:01 UTC

[echarts-website] branch asf-site updated: try to disable cache for redirection

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 781ae81  try to disable cache for redirection
781ae81 is described below

commit 781ae81f2eae74cd5142db2788c9a139d5ab6236
Author: Zhongxiang.Wang <yh...@all-my-life.cn>
AuthorDate: Mon Sep 6 16:52:57 2021 +0800

    try to disable cache for redirection
---
 .htaccess | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/.htaccess b/.htaccess
index a792c2b..44a4983 100644
--- a/.htaccess
+++ b/.htaccess
@@ -6,7 +6,7 @@ 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"
+Header append Vary: "Accept-Language"
 
 <IfModule mod_expires.c>
   ExpiresActive on
@@ -25,11 +25,16 @@ Header append Vary: "accept-language"
 RewriteEngine On
 
 RewriteCond "%{HTTP:Accept-Language}" ^zh [NC]
-RewriteRule ^/?(index[.]html)?$ "/zh/index.html" [L,R=302]
+RewriteRule ^/?(index[.]html)?$ "/zh/index.html" [L,R=302,E=NO_CACHE:1]
 
 RewriteCond "%{HTTP:Accept-Language}" ^en [NC]
-RewriteRule ^/?(index[.]html)?$ "/en/index.html" [L,R=302]
+RewriteRule ^/?(index[.]html)?$ "/en/index.html" [L,R=302,E=NO_CACHE:1]
 
 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 GM" env=NO_CACHE
+
+

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org