state-of-the-art, high-performance HTTP accelerator

overstimulate.com/articles/varnish-getting-started















cookies, etags





grace, ttl





k
backend default {
  .host = "127.0.0.1";
  .port = "7000";
}

sub vcl_recv {
  if (req.url ~ "^/widgets/") {
    unset req.http.cookie;
    set req.grace = 15s;
  } else {
    error 404 "not found";
  }
}

sub vcl_fetch {
  unset obj.http.Set-Cookie;
  remove obj.http.Etag;
  set obj.grace = 15s;
  deliver;
}




Demo