Cache fonts

This commit is contained in:
Hubert Van De Walle 2020-05-08 00:53:39 +02:00
parent a2dd6a32c9
commit 4a21f4fe3a

View File

@ -18,6 +18,11 @@ simplenotes.be {
file
}
@fonts {
path *.woff *.woff2
file
}
@404 {
expression {http.error.status_code} == 404
}
@ -37,7 +42,8 @@ simplenotes.be {
reverse_proxy http://api:8081
}
header @static Cache-Control "public, max-age=31536000"
header @static Cache-Control "public, max-age=31536000" # 1 year
header @fonts Cache-Control "public, max-age=604800" # 7 days
header Content-Security-Policy "default-src 'self' 'unsafe-inline';"
encode gzip