diff --git a/reg-tests/cache/if-modified-since.vtc b/reg-tests/cache/if-modified-since.vtc index 4d6ea6f6a..a49e4732a 100644 --- a/reg-tests/cache/if-modified-since.vtc +++ b/reg-tests/cache/if-modified-since.vtc @@ -61,6 +61,10 @@ haproxy h1 -conf { server www ${s1_addr}:${s1_port} http-response cache-store my_cache + # Remove Transfer-Encoding header because of a vtest issue with + # 304-Not-Modified responses + http-after-response del-header transfer-encoding if { status eq 304 } + cache my_cache total-max-size 3 max-age 20 @@ -148,4 +152,3 @@ client c1 -connect ${h1_fe_sock} { expect resp.bodylen == 0 } -run - diff --git a/reg-tests/cache/if-none-match.vtc b/reg-tests/cache/if-none-match.vtc index b5ad033bb..ff90ad422 100644 --- a/reg-tests/cache/if-none-match.vtc +++ b/reg-tests/cache/if-none-match.vtc @@ -46,6 +46,10 @@ haproxy h1 -conf { server www ${s1_addr}:${s1_port} http-response cache-store my_cache + # Remove Transfer-Encoding header because of a vtest issue with + # 304-Not-Modified responses + http-after-response del-header transfer-encoding if { status eq 304 } + cache my_cache total-max-size 3 max-age 20