Update .htaccess

This commit is contained in:
Kyle
2020-12-16 21:08:43 -08:00
parent 3b95bcbb7b
commit 2e2c3f24d7

View File

@@ -1,13 +1,17 @@
ErrorDocument 404 https://cardconjurer.com/404.php ErrorDocument 404 https://cardconjurer.com/404.php
<filesMatch ".(svg|jpg|jpeg|png|gif|ico)$"> # Leverage browser caching using mod_expires #
Header set Cache-Control "max-age=31536000, public" <IfModule mod_expires.c>
</filesMatch> ExpiresActive On
ExpiresByType image/jpg "access plus 1 year"
<filesMatch ".(css)$"> ExpiresByType image/jpeg "access plus 1 year"
Header set Cache-Control "max-age=604800, public" ExpiresByType image/gif "access plus 1 year"
</filesMatch> ExpiresByType image/png "access plus 1 year"
ExpiresByType text/css "access plus 1 month"
<filesMatch ".(js|php|html)$"> ExpiresByType application/pdf "access plus 1 month"
Header set Cache-Control "max-age=86400, public" ExpiresByType text/x-javascript "access plus 1 month"
</filesMatch> ExpiresByType application/x-shockwave-flash "access plus 1 month"
ExpiresByType image/x-icon "access plus 1 year"
ExpiresDefault "access plus 2 days"
</IfModule>
# End of Leverage browser caching using mod_expires #