Files
RustProxy/examples/vcl/headers-and-diagnostics.vcl
2026-11-20 17:18:02 +01:00

16 lines
451 B
Plaintext

// Request header sanitation (safe, ordinary representation headers only).
// Deliver mutations do not change the object stored in cache.
sub vcl_recv {
if (req.url ~ "^/catalog(/|[?]|$)") {
unset req.http.X-Marketing-Source;
set req.http.X-Edge-Policy = "catalog-v1";
}
}
sub vcl_deliver {
if (req.url ~ "^/catalog(/|[?]|$)") {
unset resp.http.X-Debug;
set resp.http.X-Edge-Policy = "catalog-v1";
}
}