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