From 2e2c3f24d778df438118f40c39b4b8c0f679e28a Mon Sep 17 00:00:00 2001 From: Kyle <41976328+ImKyle4815@users.noreply.github.com> Date: Wed, 16 Dec 2020 21:08:43 -0800 Subject: [PATCH] Update .htaccess --- .htaccess | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/.htaccess b/.htaccess index 8da42bc8..930e495b 100644 --- a/.htaccess +++ b/.htaccess @@ -1,13 +1,17 @@ ErrorDocument 404 https://cardconjurer.com/404.php - -Header set Cache-Control "max-age=31536000, public" - - - -Header set Cache-Control "max-age=604800, public" - - - -Header set Cache-Control "max-age=86400, public" - \ No newline at end of file +# Leverage browser caching using mod_expires # + + ExpiresActive On + ExpiresByType image/jpg "access plus 1 year" + ExpiresByType image/jpeg "access plus 1 year" + ExpiresByType image/gif "access plus 1 year" + ExpiresByType image/png "access plus 1 year" + ExpiresByType text/css "access plus 1 month" + ExpiresByType application/pdf "access plus 1 month" + ExpiresByType text/x-javascript "access plus 1 month" + ExpiresByType application/x-shockwave-flash "access plus 1 month" + ExpiresByType image/x-icon "access plus 1 year" + ExpiresDefault "access plus 2 days" + +# End of Leverage browser caching using mod_expires # \ No newline at end of file