Add per route caching headers

main
mat ess 2022-08-13 21:29:18 -04:00
parent 9cfda9bfd8
commit 4b8459b005
1 changed files with 8 additions and 0 deletions

View File

@ -45,5 +45,13 @@ http://static-mat-services.fly.dev/ {
upgrade-insecure-requests; upgrade-insecure-requests;
sandbox allow-same-origin allow-popups" sandbox allow-same-origin allow-popups"
} }
# caching
route {
header /style/* Cache-Control max-age=31536000, immutable
header /image/* Cache-Control max-age=31536000, immutable
header /font/* Cache-Control max-age=31536000, immutable
header Cache-Control max-age=180
}
} }