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:45:51 UTC
[echarts-website] branch asf-site updated: temporarily disable
expires
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 cbb4c7f temporarily disable expires
cbb4c7f is described below
commit cbb4c7fcdec05ff321b2d751f83272465d76a7f7
Author: Zhongxiang.Wang <yh...@all-my-life.cn>
AuthorDate: Mon Sep 6 17:45:46 2021 +0800
temporarily disable expires
---
.htaccess | 14 ++++++--------
1 file changed, 6 insertions(+), 8 deletions(-)
diff --git a/.htaccess b/.htaccess
index 1d17340..1b2aa48 100644
--- a/.htaccess
+++ b/.htaccess
@@ -8,10 +8,8 @@ Header set Access-Control-Allow-Headers: "*"
Header append Vary: "Accept-Language"
-SetEnvIf Referer "^$" local_referal
-
<IfModule mod_expires.c>
- ExpiresActive on
+ # ExpiresActive on
ExpiresByType text/html "access plus 1 hour"
ExpiresByType image/png "access plus 1 hour"
@@ -21,11 +19,6 @@ SetEnvIf Referer "^$" local_referal
ExpiresByType application/javascript "access plus 1 hour"
ExpiresByType application/json "access plus 1 hour"
ExpiresDefault "access plus 10 days"
-
- # Header always unset env=NO_CACHE
- # Header always unset env=NO_CACHE
- 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
</IfModule>
@@ -41,4 +34,9 @@ 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