Cache fonts
This commit is contained in:
parent
a2dd6a32c9
commit
4a21f4fe3a
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user