Commit 79e47048 authored by Dridi Boukelmoune's avatar Dridi Boukelmoune

vtc: Actually do ESI in e25

parent 925d3f05
varnishtest "Test that esi+gzip correctly bypasses Vary: accept-encoding"
server s1 {
rxreq
expect req.http.accept-encoding == gzip
txresp -hdr "Vary: Accept-encoding" -gzipbody {<esi:include src="/inc"/>}
rxreq
expect req.http.accept-encoding == gzip
txresp -hdr "Vary: Accept-encoding" -gzipbody {FOO}
} -start
varnish v1 -vcl+backend { } -start
varnish v1 -vcl+backend {
sub vcl_backend_response {
set beresp.do_esi = true;
}
} -start
client c1 {
txreq -hdr "Accept-encoding: gzip"
......@@ -15,10 +23,12 @@ client c1 {
expect resp.status == 200
gunzip
expect resp.bodylen == 3
expect resp.body == FOO
txreq
rxresp
expect resp.http.content-encoding == <undef>
expect resp.status == 200
expect resp.bodylen == 3
expect resp.body == FOO
} -run
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment