set max-age for static assets

pull/3/head
Tudor Roman 2024-02-05 16:51:52 +01:00
parent edd550f2f5
commit c6549eb0ee
Signed by: tudor
SSH Key Fingerprint: SHA256:3CwS9plgXBecpXImPGxDIaSktUXBejbV/zerZMqzzBk
1 changed files with 6 additions and 0 deletions

View File

@ -7,6 +7,12 @@ http://tudorr.ro {
file_server
log
respond /health OK
@static {
file
path *.ico *.css *.js *.gif *.webp *.avif *.jpg *.jpeg *.png *.svg *.woff *.woff2
}
header @static Cache-Control max-age=600
}
http://tudorrro.fly.dev, http://www.tudorr.ro {