Caching
Per-domain rule
list of path rules
path_rules
Per-path overrides of cache lifetime and allow/deny behaviour.
- Config key
path_rules- Scope
- Per-domain rule
- Type
- list of path rules
- Default
- none
A list of finer-grained rules that override the domain default for matching paths. Each entry carries its own path, match_type, rule_type and max_age_seconds.
This is how you cache static assets for a day while keeping an API path uncached, all under one domain.
[[proxy_rules.path_rules]]
path = "/static"
match_type = "StartsWith"
rule_type = "Whitelist"
max_age_seconds = 86400
[[proxy_rules.path_rules]]
path = "/api"
match_type = "StartsWith"
rule_type = "Whitelist"
max_age_seconds = 0