Added HTTP Cache header for all static files
Signed-off-by: Jim Martens <github@2martens.de>
This commit is contained in:
@ -3,4 +3,8 @@ RewriteEngine On
|
|||||||
RewriteCond %{HTTP_HOST} ^jim\.2martens\.de [NC]
|
RewriteCond %{HTTP_HOST} ^jim\.2martens\.de [NC]
|
||||||
RewriteRule ^(.*)$ https://2martens.de/$1 [L,R=301]
|
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>
|
||||||
Reference in New Issue
Block a user