Files
RustProxy/examples/vcl/private-routes-bypass.vcl
2026-11-20 17:18:02 +01:00

17 lines
471 B
Plaintext

// Defensive exclusions for an existing HTTP reverse-proxy vhost.
// Does not opt in to caching for other routes.
sub vcl_recv {
if (req.method != "GET" && req.method != "HEAD") {
return(pass);
}
if (req.url ~ "^/(admin|api/private|account|auth|login|logout|checkout|cart|dashboard|webhook)(/|[?]|$)") {
return(pass);
}
if (req.http.Authorization) {
return(pass);
}
if (req.http.Cookie) {
return(pass);
}
}