Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
79e47048
Commit
79e47048
authored
Dec 26, 2022
by
Dridi Boukelmoune
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vtc: Actually do ESI in e25
parent
925d3f05
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
e00025.vtc
bin/varnishtest/tests/e00025.vtc
+11
-1
No files found.
bin/varnishtest/tests/e00025.vtc
View file @
79e47048
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment