sub vcl_recv { # no Get or HEAD method if (req.request != "GET" && req.request != "HEAD") { return(pipe); } # no-cache if (req.http.Cache-Control ~ "no-cache") { return(pass); } return(lookup); } sub vcl_fetch { if (beresp.status == 500) { set beresp.saintmode = 10s; return(restart); } set beresp.grace = 5m; if (req.url ~ "\.(png|gif|jpg|jpeg|css|js|ico)$") { unset beresp.http.set-cookie; set bere