On 11/27/2017 01:04 PM, matrix wrote:
> 
> According to varnishlog Bereq header are displayed but origin server
> log, only Accept-Encoding: aaaa .
> 
> -   BereqHeader    Accept-Encoding: aaaa
> -   BereqHeader    Accept-Encoding: bbbb
> 
> I would like to change  Accept-Encoding Header to br,gzip, because the
> varnish is force replaced Accept-Encoding gzip when backend request.
> 
> VCL
> unset bereq.http.Accept-Encoding;
> header.append(bereq.http.Accept-Encoding, "aaaa");
> header.append(bereq.http.Accept-Encoding, "bbbb");

After the header.append()s you can use:

std.collect(bereq.http.Accept-Encoding)

... to combine them into a single header with comma-separated values.

https://varnish-cache.org/docs/5.2/reference/vmod_std.generated.html#func-collect

Best,
Geoff
-- 
** * * UPLEX - Nils Goroll Systemoptimierung

Scheffelstraße 32
22301 Hamburg

Tel +49 40 2880 5731
Mob +49 176 636 90917
Fax +49 40 42949753

http://uplex.de

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
varnish-misc mailing list
varnish-misc@varnish-cache.org
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc

Reply via email to