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 09419a2b02 Update .htaccess
09419a2b02 is described below

commit 09419a2b02eda01332a9a9d3fa10f0917c8ebc06
Author: Albumen Kevin <[email protected]>
AuthorDate: Fri Feb 24 20:53:15 2023 +0800

    Update .htaccess
---
 .htaccess | 22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)

diff --git a/.htaccess b/.htaccess
index 7eaf5ed575..375f9ca504 100644
--- a/.htaccess
+++ b/.htaccess
@@ -1,15 +1,15 @@
 # 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 on
+  ExpiresByType text/html                 "access plus 0 seconds"
+  ExpiresByType image/png                 "access plus 1 day"
+  ExpiresByType image/jpg                 "access plus 1 day"
+  ExpiresByType image/jpeg                "access plus 1 day"
+  ExpiresByType text/css                  "access plus 1 day"
+  ExpiresByType application/javascript    "access plus 1 day"
+  ExpiresDefault                          "access plus 0 seconds"
+</IfModule>
+
 
 <IfModule mod_rewrite.c>
   RewriteEngine On

Reply via email to