Caching a version per device
sub vcl_backend_response {
set beresp.http.Vary = "X-Device"
}if (bereq.http.host == 'www.transparentcdn.com') {
set beresp.http.Vary = "X-Device";
}sub vcl_backend_response {
set beresp.http.Vary = beresp.http.Vary+",X-Device"
}Last updated
Was this helpful?
