From 62775ebdfddb789c8cb19d86eca13e29c2f03b17 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Thu, 15 Jul 2021 05:25:49 +0200 Subject: [PATCH] improved htaccess expiry syntax --- main/.htaccess | 7 +++---- main/blog/.htaccess | 1 - 2 files changed, 3 insertions(+), 5 deletions(-) delete mode 100644 main/blog/.htaccess diff --git a/main/.htaccess b/main/.htaccess index 61c9b59..49f1688 100644 --- a/main/.htaccess +++ b/main/.htaccess @@ -1,7 +1,6 @@ -Header append Cache-Control max-age=31536000 - -Header edit Cache-Control ^max-age=\w* max-age=600 - +ExpiresActive On +ExpiresDefault A31536000 +ExpiresByType text/html A600 Options +MultiViews -Indexes ErrorDocument 404 /404.html diff --git a/main/blog/.htaccess b/main/blog/.htaccess deleted file mode 100644 index d08cbff..0000000 --- a/main/blog/.htaccess +++ /dev/null @@ -1 +0,0 @@ -Header edit Cache-Control ^max-age=\w* max-age=600 \ No newline at end of file