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
3b5e7c4b
Commit
3b5e7c4b
authored
Sep 11, 2011
by
Andreas Plesner Jacobsen
Committed by
Tollef Fog Heen
Sep 22, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add undocumented variables
parent
407ed754
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
45 additions
and
2 deletions
+45
-2
vcl.rst
doc/sphinx/reference/vcl.rst
+45
-2
No files found.
doc/sphinx/reference/vcl.rst
View file @
3b5e7c4b
...
...
@@ -687,6 +687,9 @@ The following variables are available while processing a request:
client.ip
The client's IP address.
client.identity
Identification of the client, used to load balance in the client director.
server.hostname
The host name of the server.
...
...
@@ -733,6 +736,21 @@ req.hash_ignore_busy
req.can_gzip
Does the client accept the gzip transfer encoding.
req.restarts
A count of how many times this request has been restarted.
req.esi
True if the request is an ESI request.
req.esi_level
A count of how many levels of ESI requests we're currently at.
req.grace
Set to a period to enable grace.
req.xid
Unique ID of this request.
The following variables are available while preparing a backend
request (either for a cache miss or for pass or pipe mode):
...
...
@@ -792,6 +810,25 @@ beresp.response
beresp.ttl
The object's remaining time to live, in seconds. beresp.ttl is writable.
beresp.grace
Set to a period to enable grace.
beresp.saintmode
Set to a period to enable saint mode.
beresp.backend.name
Name of the backend this response was fetched from.
beresp.backend.ip
IP of the backend this response was fetched from.
beresp.backend.port
Port of the backend this response was fetched from.
beresp.storage
Set to force Varnish to save this object to a particular storage
backend.
After the object is entered into the cache, the following (mostly
read-only) variables are available when the object has been located in
cache, typically in vcl_hit and vcl_deliver.
...
...
@@ -816,6 +853,12 @@ obj.hits
The approximate number of times the object has been delivered. A value
of 0 indicates a cache miss.
obj.grace
The object's grace period in seconds. obj.grace is writable.
obj.http.header
The corresponding HTTP header.
The following variables are available while determining the hash key
of an object:
...
...
@@ -1000,8 +1043,8 @@ and Per Buer.
COPYRIGHT
=========
This document is licensed under the same licen
c
e as Varnish
itself. See LICEN
C
E for details.
This document is licensed under the same licen
s
e as Varnish
itself. See LICEN
S
E for details.
* Copyright (c) 2006 Verdens Gang AS
* Copyright (c) 2006-2011 Varnish Software AS
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