From a359cd60ae11b65de746051ea21f92506c406ec9 Mon Sep 17 00:00:00 2001 From: Dong Lin Date: Wed, 19 Jul 2023 09:44:09 +0800 Subject: [PATCH] Allow content to expire --- _include/.htaccess | 9 ++++++++- content/.htaccess | 9 ++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/_include/.htaccess b/_include/.htaccess index a8bfda1984..7adb933902 100644 --- a/_include/.htaccess +++ b/_include/.htaccess @@ -1,4 +1,11 @@ -# redirect rules to prevent old links from breaking +# Allow removed content to expire + + ExpiresActive on + ExpiresByType text/html "access plus 1 hours" + ExpiresDefault "access plus 1 days" + + +# Redirect rules to prevent old links from breaking RewriteEngine On RewriteCond %{HTTPS} off diff --git a/content/.htaccess b/content/.htaccess index a8bfda1984..7adb933902 100644 --- a/content/.htaccess +++ b/content/.htaccess @@ -1,4 +1,11 @@ -# redirect rules to prevent old links from breaking +# Allow removed content to expire + + ExpiresActive on + ExpiresByType text/html "access plus 1 hours" + ExpiresDefault "access plus 1 days" + + +# Redirect rules to prevent old links from breaking RewriteEngine On RewriteCond %{HTTPS} off