17 lines
471 B
Plaintext
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);
|
|
}
|
|
}
|