Skip to content

Commit

Permalink
chore: update .htaccess
Browse files Browse the repository at this point in the history
  • Loading branch information
plainheart authored Oct 27, 2023
1 parent b5abff5 commit f6cfb49
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ RedirectMatch 404 /\.asf\.yaml
Header set Access-Control-Allow-Headers "*"
Header set X-XSS-Protection "1; mode=block"
Header set X-Frame-Options "sameorigin"
Header set X-Content-Type-Options "nosniff"
</IfModule>


<IfModule mod_expires.c>
ExpiresActive on

Expand All @@ -29,7 +29,7 @@ RedirectMatch 404 /\.asf\.yaml
ExpiresDefault "access plus 10 days"
</IfModule>

# no cahce for root index redirection
# no cache for root index redirection
<If "%{REQUEST_URI} =~ m#^/?(((examples)|(handbook))/?)?([\w\-]+\.html)?$#">
<IfModule mod_expires.c>
ExpiresActive off
Expand Down Expand Up @@ -61,4 +61,3 @@ RedirectMatch 404 /\.asf\.yaml

RewriteRule ^/?([\w\-]+)\.html$ "/en/$1.html" [L,R=302]
</IfModule>

0 comments on commit f6cfb49

Please sign in to comment.