Most of these variables are not available in vcl_deliver

Fixes #1056
parent 9b65ebca
...@@ -842,7 +842,8 @@ beresp.storage ...@@ -842,7 +842,8 @@ beresp.storage
After the object is entered into the cache, the following (mostly After the object is entered into the cache, the following (mostly
read-only) variables are available when the object has been located in read-only) variables are available when the object has been located in
cache, typically in vcl_hit and vcl_deliver. cache, typically in vcl_hit, or when constructing a synthetic reply in
vcl_error:
obj.proto obj.proto
The HTTP protocol version used when the object was retrieved. The HTTP protocol version used when the object was retrieved.
...@@ -858,11 +859,12 @@ obj.ttl ...@@ -858,11 +859,12 @@ obj.ttl
obj.lastuse obj.lastuse
The approximate time elapsed since the object was last requests, in The approximate time elapsed since the object was last requests, in
seconds. seconds. This variable is also available in vcl_deliver.
obj.hits obj.hits
The approximate number of times the object has been delivered. A value The approximate number of times the object has been delivered. A value
of 0 indicates a cache miss. of 0 indicates a cache miss. This variable is also available in
vcl_deliver.
obj.grace obj.grace
The object's grace period in seconds. obj.grace is writable. The object's grace period in seconds. obj.grace is writable.
......
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