Scenarios & recipes
Scenario
Recipe: high-traffic media site
Lean on WebP and long-lived caching to slash bandwidth on an image-heavy site.
Image-heavy sites live and die by bandwidth. Cache hard, convert images to WebP, and compress the surrounding HTML/CSS/JS.
[[proxy_rules]]
domain = "blog.example.com"
forward_ipv4 = "10.0.0.12"
forward_port_https = 443
max_age_seconds = 1800
ignore_query_string = true
rule_type = "Whitelist"
redirect_to_https = true
enable_compression = true
compression_flags = "br, gzip"
enable_minification = true
minification_flags = "html"
enable_webp_transformation = true
webp_transformation_min_age = 3600
[[proxy_rules.path_rules]]
path = "/uploads"
match_type = "StartsWith"
rule_type = "Whitelist"
max_age_seconds = 2592000- Uploaded media under
/uploadscached for a month. - WebP conversion after an hour so popular images shrink without wasting CPU on churn.
- HTML minified and everything textual compressed.
⚡Bandwidth impact
WebP plus month-long media caching typically cuts egress on an image-heavy site by well over half.