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
b47c0272
Commit
b47c0272
authored
Feb 24, 2014
by
Per Buer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
4.0 updates
parent
6737d143
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
11 deletions
+4
-11
increasing-your-hitrate.rst
doc/sphinx/users-guide/increasing-your-hitrate.rst
+2
-1
vcl-actions.rst
doc/sphinx/users-guide/vcl-actions.rst
+1
-9
vcl-variables.rst
doc/sphinx/users-guide/vcl-variables.rst
+1
-1
No files found.
doc/sphinx/users-guide/increasing-your-hitrate.rst
View file @
b47c0272
...
...
@@ -146,7 +146,8 @@ header. You could easily add support for this header in VCL.
In vcl_fetch::
if (beresp.http.Pragma ~ "nocache") {
return(hit_for_pass);
set beresp.uncacheable = true;
set beresp.ttl = 120s; // how long not to cache this url.
}
Authorization
...
...
doc/sphinx/users-guide/vcl-actions.rst
View file @
b47c0272
...
...
@@ -10,14 +10,6 @@ The most common actions to return are these:
and from the backend server. It won't be cached. pass can be returned from
vcl_recv
*hit_for_pass*
Similar to pass, but accessible from vcl_fetch. Unlike pass, hit_for_pass
will create a hitforpass object in the cache. This has the side-effect of
caching the decision not to cache. This is to allow would-be uncachable
requests to be passed to the backend at the same time. The same logic is
not necessary in vcl_recv because this happens before any potential
queueing for an object takes place.
*lookup*
When you return lookup from vcl_recv you tell Varnish to deliver content
from cache even if the request othervise indicates that the request
...
...
@@ -33,7 +25,7 @@ The most common actions to return are these:
header before actually returning pipe.
*deliver*
Deliver the
cached object to the client. Usually returned from vcl_fetch
.
Deliver the
object to the client. Usually returned from vcl_backend_response
.
*restart*
Restart processing of the request. You can restart the processing of
...
...
doc/sphinx/users-guide/vcl-variables.rst
View file @
b47c0272
...
...
@@ -12,7 +12,7 @@ In VCL, there several important objects.
*bereq*
The backend request object. Varnish contructs this before sending it to the
backend.
backend.
It is based on the req object.
*beresp*
The backend response object. It contains the headers of the object
...
...
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