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

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


The following commit(s) were added to refs/heads/asf-site-v2 by this push:
     new f1aed979cf6 No cache
f1aed979cf6 is described below

commit f1aed979cf6cb923674eea8c29cd249fa62ca442
Author: Albumen Kevin <[email protected]>
AuthorDate: Sat Oct 7 10:29:41 2023 +0800

    No cache
---
 .htaccess | 20 +++++++++-----------
 1 file changed, 9 insertions(+), 11 deletions(-)

diff --git a/.htaccess b/.htaccess
index dd31cb52167..898fe924d4f 100644
--- a/.htaccess
+++ b/.htaccess
@@ -1,15 +1,13 @@
 # no cahce for root index redirection
-<If "%{REQUEST_URI} =~ m#^/?([\w\-]+\.html)?$#">
-    <IfModule mod_expires.c>
-        ExpiresActive off
-    </IfModule>
-
-    <IfModule mod_headers.c>
-        Header always set Cache-Control "no-store, no-cache, must-revalidate"
-        Header always set Expires "Thu, 01 Dec 1994 16:00:00 GMT"
-        Header always merge Vary "Accept-Language"
-    </IfModule>
-</If>
+<IfModule mod_expires.c>
+    ExpiresActive off
+</IfModule>
+
+<IfModule mod_headers.c>
+    Header always set Cache-Control "no-store, no-cache, must-revalidate"
+    Header always set Expires "Thu, 01 Dec 1994 16:00:00 GMT"
+    Header always merge Vary "Accept-Language"
+</IfModule>
 
 <IfModule mod_rewrite.c>
   RewriteEngine On

Reply via email to