From f6cfb49a48e095f833abbfe17911eb6e23ed5218 Mon Sep 17 00:00:00 2001 From: Zhongxiang Wang Date: Fri, 27 Oct 2023 22:39:13 +0800 Subject: [PATCH] chore: update .htaccess --- .htaccess | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.htaccess b/.htaccess index 98322bf24..cab07997c 100644 --- a/.htaccess +++ b/.htaccess @@ -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" - ExpiresActive on @@ -29,7 +29,7 @@ RedirectMatch 404 /\.asf\.yaml ExpiresDefault "access plus 10 days" -# no cahce for root index redirection +# no cache for root index redirection ExpiresActive off @@ -61,4 +61,3 @@ RedirectMatch 404 /\.asf\.yaml RewriteRule ^/?([\w\-]+)\.html$ "/en/$1.html" [L,R=302] -