Add per route caching headers
parent
9cfda9bfd8
commit
4b8459b005
|
@ -45,5 +45,13 @@ http://static-mat-services.fly.dev/ {
|
|||
upgrade-insecure-requests;
|
||||
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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue