From 4e0dd61bac09c19ff341c5cb692f7ea38ebc2261 Mon Sep 17 00:00:00 2001 From: Zhongxiang Wang Date: Fri, 23 Feb 2024 10:20:03 +0800 Subject: [PATCH] Update .htaccess --- .htaccess | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/.htaccess b/.htaccess index fc8585f12..2eb1221c5 100644 --- a/.htaccess +++ b/.htaccess @@ -19,14 +19,19 @@ RedirectMatch 404 /\.asf\.yaml ExpiresActive on - ExpiresByType text/html "access plus 1 hour" - ExpiresByType image/png "access plus 1 hour" - ExpiresByType image/jpg "access plus 1 hour" - ExpiresByType image/jpeg "access plus 1 hour" - ExpiresByType text/css "access plus 1 hour" + ExpiresByType text/html "access plus 1 hour" + ExpiresByType text/css "access plus 1 hour" ExpiresByType application/javascript "access plus 1 hour" - ExpiresByType application/json "access plus 1 hour" - ExpiresDefault "access plus 10 days" + ExpiresByType application/json "access plus 1 hour" + ExpiresByType text/javascript "access plus 1 hour" + ExpiresByType text/json "access plus 1 hour" + + #ExpiresByType image/png "access plus 1 hour" + #ExpiresByType image/jpg "access plus 1 hour" + #ExpiresByType image/jpeg "access plus 1 hour" + #ExpiresByType image/webp "access plus 1 hour" + + ExpiresDefault "access plus 10 days" # no cache for root index redirection