简体   繁体   中英

Varnish Via and X-Varnish headers: are they needed in production?

We have just deployed several varnish instances in production and I'm wondering whether is it ok to unset the Via: and X-Varnish: headers.

As far as I read Via is only an info header, while X-Varnish is for debugging, but I didn't find info about whether they're optional or necessary.

So is it safe to removed them like this?

sub vcl_deliver {
  unset resp.http.Via;
  unset resp.http.X-Varnish;
}

从清漆/浏览器/最终用户的角度来看,它们都是可选的,可以删除。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM