Removing Headers

Stig Sandbeck Mathisen ssm at linpro.no
Tue Nov 18 09:44:53 CET 2008


On Tue, Nov 18, 2008 at 01:54:58PM +0530, Paras Fadte wrote:
> Hi,
> 
> Can response headers like "X-Varnish" and "Via" be removed ?

Yes

The subroutine you are looking for is "vcl_deliver", the headers are available
as resp.http.<header>, they can be removed with the "remove" keyword.

See the vcl(7) man page.

-- 
Stig Sandbeck Mathisen <ssm at linpro.no>
Redpill Linpro AS - Changing the Game
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20081118/3efee4b4/attachment-0003.pgp>


More information about the varnish-misc mailing list