Extend b62.vtc by cache reload

parent ab644362
...@@ -17,6 +17,12 @@ server s1 { ...@@ -17,6 +17,12 @@ server s1 {
rxreq rxreq
expect req.url == "/2" expect req.url == "/2"
txresp -body "x" txresp -body "x"
# IMS after restart
accept
rxreq
expect req.http.if-modified-since == "Wed, 11 Sep 2013 13:36:55 GMT"
txresp -status 304
} -start } -start
varnish v1 \ varnish v1 \
...@@ -28,6 +34,7 @@ varnish v1 \ ...@@ -28,6 +34,7 @@ varnish v1 \
import slash; import slash;
sub vcl_init { sub vcl_init {
slash.tune_fellow(storage.fellow, chunk_exponent=12); slash.tune_fellow(storage.fellow, chunk_exponent=12);
slash.tune_fellow(storage.fellow, readahead=31);
} }
sub vcl_backend_response { sub vcl_backend_response {
set beresp.ttl = 1s; set beresp.ttl = 1s;
...@@ -78,3 +85,15 @@ client c4 { ...@@ -78,3 +85,15 @@ client c4 {
expect resp.status == 200 expect resp.status == 200
expect resp.body == "x" expect resp.body == "x"
} -run } -run
varnish v1 -stop
varnish v1 -start
client c1 {
txreq
rxresp
expect resp.status == 200
expect resp.bodylen == 1048576
} -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