add & clear packet header from varnish

sub vcl_deliver {

# Clear Header
unset resp.http.Via;
unset resp.http.X-Whatever;
unset resp.http.X-Powered-By;
unset resp.http.X-Varnish;
unset resp.http.Age;
unset resp.http.Server;

# Set/Add New Header
set resp.http.Server = “Varnish-Header-Added”;
set resp.http.X-Powered-By = “Varnish-Header-Added-2”;

}

Add a Comment

Your email address will not be published. Required fields are marked *

*