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
53e6f23a
Commit
53e6f23a
authored
Sep 11, 2013
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Trivial test-case for conditional fetch
parent
48821b46
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
0 deletions
+40
-0
b00039.vtc
bin/varnishtest/tests/b00039.vtc
+40
-0
No files found.
bin/varnishtest/tests/b00039.vtc
0 → 100644
View file @
53e6f23a
varnishtest "Test IMS"
server s1 {
rxreq
txresp -hdr "Last-Modified: Wed, 11 Sep 2013 13:36:55 GMT" -body "Geoff Rules"
rxreq
expect req.http.if-modified-since == "Wed, 11 Sep 2013 13:36:55 GMT"
txresp -status 304
} -start
varnish v1 -vcl+backend {
sub vcl_backend_response {
set beresp.ttl = 2s;
set beresp.grace = 20s;
set beresp.keep = 1m;
}
} -start
client c1 {
txreq
rxresp
expect resp.status == 200
expect resp.body == "Geoff Rules"
} -run
delay 3
client c1 {
txreq
rxresp
expect resp.status == 200
expect resp.body == "Geoff Rules"
} -run
client c1 {
txreq
rxresp
expect resp.status == 200
expect resp.body == "Geoff Rules"
} -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