Varnish 4.0 & Removing/changing headers

Andrew Langhorn andrew.langhorn at digital.cabinet-office.gov.uk
Sun Jul 5 15:35:15 CEST 2015


What error do you get? Removing HTTP response headers is still supported in
4.x as far as I can remember.

On Sunday, 5 July 2015, Sami Mäntysaari <sm at sami-mantysaari.com> wrote:

> Hi,
>
> 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.
>
> _______________________________________________
> varnish-misc mailing list
> varnish-misc at varnish-cache.org <javascript:;>
> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
>


--
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20150705/ff307f6b/attachment.html>


More information about the varnish-misc mailing list