Varnish 4.0 & Removing/changing headers

Sami Mäntysaari sm at
Sun Jul 5 15:26:31 CEST 2015


I would like to hide the fact that my service is using an varnish cache.
How can I do so as every guide I have found has been for the 3.0
version, but not for 4.0?

sub vcl_deliver {
	remove resp.http.Via;
	remove resp.http.X-Whatever;
	remove resp.http.X-Powered-By;
	remove resp.http.X-Varnish;
	remove resp.http.Age;
	remove resp.http.Server;
	set resp.http.Server = "TFE";
	set resp.http.X-Powered-By = "Curiosity";

That for instance gives me an error.

More information about the varnish-misc mailing list