Create .htaccess

This commit is contained in:
Kyle
2020-12-17 09:49:03 -08:00
parent 3fbedc0051
commit 8ac761146d

16
.htaccess Normal file
View File

@@ -0,0 +1,16 @@
ErrorDocument 404 https://cardconjurer.com/404.php
<IfModule mod_headers.c>
#YEAR
<filesMatch "\.(png|svg|ttf)$">
Header set Cache-Control "max-age=31536000, public"
</filesMatch>
#MONTH
<filesMatch "\.(css|html)$">
Header set Cache-Control "max-age=2678400, public"
</filesMatch>
#WEEK
<filesMatch "\.(js)$">
Header set Cache-Control "max-age=604800, public"
</filesMatch>
</IfModule>