Added HTTP Cache header for all static files

Signed-off-by: Jim Martens <github@2martens.de>
This commit is contained in:
Jim Martens 2018-01-02 17:10:26 +01:00
parent d5686b6f8d
commit 26207408c0
1 changed files with 5 additions and 1 deletions

View File

@ -3,4 +3,8 @@ RewriteEngine On
RewriteCond %{HTTP_HOST} ^jim\.2martens\.de [NC]
RewriteRule ^(.*)$ https://2martens.de/$1 [L,R=301]
ErrorDocument 404 /404.html
ErrorDocument 404 /404.html
<filesMatch ".(css|jpg|jpeg|png|gif|js|ico|pdf)$">
Header set Cache-Control "max-age=86400, public"
</filesMatch>