Accelerating Wordpress with Varnish 4

The receiver part:

sub vcl_recv {
  # Wordpress - cache everything except...
  if (!(req.url ~ "wp-admin|xmlrpc\.php|wp-(comments-post|login|activate|mail)\.php|&preview=true")) {
    unset req.http.cookie;
    return (hash);
  }

  # Happens before we check if we have this in cache already.
  # 
  # Typically you clean up the request here, removing cookies you …
more ...