varnishtest "Test conditional delivery and do_stream"

server s1 {
	rxreq
	txresp -hdr {ETag: "foo"} -body "11111\n"
} -start

varnish v1 -vcl+backend {
	sub vcl_backend_response {
		set beresp.do_stream = true;
	}
} -start

client c1 {
	txreq -hdr {If-None-Match: "foo"}
	rxresp -no_obj
	expect resp.status == 304
	expect resp.http.etag == {"foo"}
}  -run

