haproxyconf-2022/etc/varnish/conf.d/devicedetect.deliver.vcl

6 lines
264 B
Plaintext
Raw Normal View History

2022-09-17 15:15:43 +02:00
# to keep any caches in the wild from serving wrong content to client #2
# behind them, we need to transform the Vary on the way out.
if ((req.http.X-UA-Device) && (resp.http.Vary)) {
set resp.http.Vary = regsub(resp.http.Vary, "X-UA-Device", "User-Agent");
}