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

PDavid pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/hbase-site.git


The following commit(s) were added to refs/heads/asf-site by this push:
     new 89d88792bf0 HBASE-30127 Improve Website's SEO (#13)
89d88792bf0 is described below

commit 89d88792bf0f9f5607505982b7de2d7fa446b16a
Author: Yurii Palamarchuk <[email protected]>
AuthorDate: Thu Jun 4 16:21:08 2026 +0200

    HBASE-30127 Improve Website's SEO (#13)
    
    Signed-off-by: Dávid Paksy <[email protected]>
---
 .htaccess | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/.htaccess b/.htaccess
index 8a627fdd689..9e4c34cccb8 100644
--- a/.htaccess
+++ b/.htaccess
@@ -20,3 +20,13 @@ RedirectMatch permanent ^/xref/(.*)\.html$ 
https://git-wip-us.apache.org/repos/a
 # Redirect 0.94 pages to main site
 RedirectMatch permanent ^/0.94/(.*)$ /$1
 Redirect permanent /0.94 /
+
+ErrorDocument 404 /404.html
+
+<IfModule mod_headers.c>
+  Header always set Cache-Control "no-cache, must-revalidate"
+
+  <FilesMatch 
"\.(?:css|js|mjs|gif|ico|jpe?g|png|svg|webp|avif|woff2?|ttf|otf|eot|pdf)$">
+    Header always set Cache-Control "public, max-age=2592000, immutable"
+  </FilesMatch>
+</IfModule>

Reply via email to