Adapting front end to new features for varnish 4.