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
fdabaa15
Commit
fdabaa15
authored
Feb 16, 2014
by
Federico G. Schwindt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Spelling
parent
a88dbf91
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
13 additions
and
13 deletions
+13
-13
compression.rst
doc/sphinx/users-guide/compression.rst
+1
-1
devicedetection.rst
doc/sphinx/users-guide/devicedetection.rst
+1
-1
intro.rst
doc/sphinx/users-guide/intro.rst
+2
-2
params.rst
doc/sphinx/users-guide/params.rst
+1
-1
run_security.rst
doc/sphinx/users-guide/run_security.rst
+1
-1
vcl-example-manipulating-responses.rst
...sphinx/users-guide/vcl-example-manipulating-responses.rst
+1
-1
vcl-examples.rst
doc/sphinx/users-guide/vcl-examples.rst
+1
-1
vcl-hashing.rst
doc/sphinx/users-guide/vcl-hashing.rst
+3
-3
vcl-variables.rst
doc/sphinx/users-guide/vcl-variables.rst
+1
-1
vcl.rst
doc/sphinx/users-guide/vcl.rst
+1
-1
No files found.
doc/sphinx/users-guide/compression.rst
View file @
fdabaa15
...
@@ -36,7 +36,7 @@ vcl_fetch by setting do_gzip to true, like this::
...
@@ -36,7 +36,7 @@ vcl_fetch by setting do_gzip to true, like this::
}
}
Please make sure that you don't try to compress content that is
Please make sure that you don't try to compress content that is
i
ncompressable, like jpgs, gifs and mp3. You'll only waste CPU
u
ncompressable, like jpgs, gifs and mp3. You'll only waste CPU
cycles. You can also uncompress objects before storing it in memory by
cycles. You can also uncompress objects before storing it in memory by
setting do_gunzip to *true* but I have no idea why anybody would want
setting do_gunzip to *true* but I have no idea why anybody would want
to do that.
to do that.
...
...
doc/sphinx/users-guide/devicedetection.rst
View file @
fdabaa15
...
@@ -28,7 +28,7 @@ Setting this header can be as simple as::
...
@@ -28,7 +28,7 @@ Setting this header can be as simple as::
}
}
There are different commercial and free offerings in doing grouping and
There are different commercial and free offerings in doing grouping and
identif
i
ying clients in further detail than this. For a basic and community
identifying clients in further detail than this. For a basic and community
based regular expression set, see
based regular expression set, see
https://github.com/varnish/varnish-devicedetect/ .
https://github.com/varnish/varnish-devicedetect/ .
...
...
doc/sphinx/users-guide/intro.rst
View file @
fdabaa15
...
@@ -99,9 +99,9 @@ and facilities Varnish offers.
...
@@ -99,9 +99,9 @@ and facilities Varnish offers.
Finally, Murphys Law must be contended with: Things will go wrong, and
Finally, Murphys Law must be contended with: Things will go wrong, and
more likely than not, they will do so at zero-zero-dark O'clock. Most
more likely than not, they will do so at zero-zero-dark O'clock. Most
likely during a hurricane, when your phones battery is flat and your
likely during a hurricane, when your phones battery is flat and your
wife had prepared a intimate evening to celebrate your aniversary.
wife had prepared a intimate evening to celebrate your an
n
iversary.
Yes, we've all been there, havn't we?
Yes, we've all been there, hav
e
n't we?
When things go wrong :ref:`users_trouble` will hopefully be of some help.
When things go wrong :ref:`users_trouble` will hopefully be of some help.
...
...
doc/sphinx/users-guide/params.rst
View file @
fdabaa15
...
@@ -5,7 +5,7 @@ Parameters
...
@@ -5,7 +5,7 @@ Parameters
Varnish Cache has a set of parameter that affect its behaviour and
Varnish Cache has a set of parameter that affect its behaviour and
performance. Most of these parameters can be set on the Varnish
performance. Most of these parameters can be set on the Varnish
command line (through varnishadm) us
e
ing the param.set keyword.
command line (through varnishadm) using the param.set keyword.
Some parameters can, for security purposes be read only using the "-r"
Some parameters can, for security purposes be read only using the "-r"
command line switch to varnishd.
command line switch to varnishd.
...
...
doc/sphinx/users-guide/run_security.rst
View file @
fdabaa15
...
@@ -9,7 +9,7 @@ this chapter: We have protected Varnish as well as we can from
...
@@ -9,7 +9,7 @@ this chapter: We have protected Varnish as well as we can from
anything which can come in through HTTP socket.
anything which can come in through HTTP socket.
If parts of your web infrastructure are outsourced or otherwise
If parts of your web infrastructure are outsourced or otherwise
partitioned along adminitrative lines, you need to think about
partitioned along admini
s
trative lines, you need to think about
security.
security.
Varnish provides four levels of authority, roughly related to
Varnish provides four levels of authority, roughly related to
...
...
doc/sphinx/users-guide/vcl-example-manipulating-responses.rst
View file @
fdabaa15
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
Altering the backend response
Altering the backend response
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Here we override the TTL of a object com
m
ing from the backend if it
Here we override the TTL of a object coming from the backend if it
matches certain criteria::
matches certain criteria::
sub vcl_fetch {
sub vcl_fetch {
...
...
doc/sphinx/users-guide/vcl-examples.rst
View file @
fdabaa15
...
@@ -3,7 +3,7 @@ VCL Examples
...
@@ -3,7 +3,7 @@ VCL Examples
------------
------------
These are a short collection of examples that showcase some of the
These are a short collection of examples that showcase some of the
capabilites of the VCL language.
capabilit
i
es of the VCL language.
.. toctree::
.. toctree::
...
...
doc/sphinx/users-guide/vcl-hashing.rst
View file @
fdabaa15
...
@@ -3,7 +3,7 @@ Hashing
...
@@ -3,7 +3,7 @@ Hashing
Internally, when Varnish stores content in it's store it uses a hash
Internally, when Varnish stores content in it's store it uses a hash
key to find the object again. In the default setup this key is
key to find the object again. In the default setup this key is
calculated based on the content of the *Host* header or the IP adress
calculated based on the content of the *Host* header or the IP ad
d
ress
of the server and the URL.
of the server and the URL.
Behold the default vcl::
Behold the default vcl::
...
@@ -19,8 +19,8 @@ Behold the default vcl::
...
@@ -19,8 +19,8 @@ Behold the default vcl::
}
}
As you can see it first chucks in req.url then req.http.host if it
As you can see it first chucks in req.url then req.http.host if it
ex
s
ists. It is worth pointing out that Varnish doesn't lowercase the
exists. It is worth pointing out that Varnish doesn't lowercase the
hostname or the URL before hashing it so in thery having Varnish.org/
hostname or the URL before hashing it so in the
o
ry having Varnish.org/
and varnish.org/ would result in different cache entries. Browers
and varnish.org/ would result in different cache entries. Browers
however, tend to lowercase hostnames.
however, tend to lowercase hostnames.
...
...
doc/sphinx/users-guide/vcl-variables.rst
View file @
fdabaa15
...
@@ -15,7 +15,7 @@ In VCL, there several important objects.
...
@@ -15,7 +15,7 @@ In VCL, there several important objects.
*beresp*
*beresp*
The backend respons object. It contains the headers of the object
The backend respons object. It contains the headers of the object
com
m
ing from the backend. Most of the work you do in vcl_fetch you
coming from the backend. Most of the work you do in vcl_fetch you
do on the beresp object.
do on the beresp object.
*resp*
*resp*
...
...
doc/sphinx/users-guide/vcl.rst
View file @
fdabaa15
...
@@ -16,7 +16,7 @@ the request is being handled by altering the VCL code. You can direct
...
@@ -16,7 +16,7 @@ the request is being handled by altering the VCL code. You can direct
certain requests to certains backends, you can alter the requests and
certain requests to certains backends, you can alter the requests and
the responses or have Varnish take various actions depending on
the responses or have Varnish take various actions depending on
arbitrary properties of the request or the response. This makes
arbitrary properties of the request or the response. This makes
Varnish an extremly powerful HTTP processor, not just for caching.
Varnish an extrem
e
ly powerful HTTP processor, not just for caching.
Varnish translates VCL into binary code which is then executed when
Varnish translates VCL into binary code which is then executed when
requests arrive. The performance impact of VCL is negligible.
requests arrive. The performance impact of VCL is negligible.
...
...
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