1 #-e This is a basic VCL configuration file for varnish. See the vcl(7)
2 #man page for details on VCL syntax and semantics.
12 if (req.http.Cache-Control ~ "(?i)no-cache") {
13 # Ignore requests via proxy caches and badly behaved crawlers
14 if (! (req.http.Via || req.http.User-Agent ~ "(?i)bot" || req.http.X-Purge)) {
15 return(purge); # Couple this with restart in vcl_purge and X-Purge header to avoid loops
21 # Only handle actual PURGE HTTP methods, everything else is discarded
22 if (req.method != "PURGE") {
24 set req.http.X-Purge = "Yes";