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
c510ea21
Commit
c510ea21
authored
Mar 20, 2014
by
Lasse Karstensen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Endless reformatting
parent
31a47246
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
10 deletions
+12
-10
introduction.rst
doc/sphinx/tutorial/introduction.rst
+10
-8
starting_varnish.rst
doc/sphinx/tutorial/starting_varnish.rst
+2
-2
No files found.
doc/sphinx/tutorial/introduction.rst
View file @
c510ea21
...
@@ -9,18 +9,20 @@ the request from the cache it will forward the request to the backend,
...
@@ -9,18 +9,20 @@ the request from the cache it will forward the request to the backend,
fetch the response, store it in the cache and deliver it to the client.
fetch the response, store it in the cache and deliver it to the client.
When Varnish has a cached response ready it is typically delivered in
When Varnish has a cached response ready it is typically delivered in
a matter of microseconds,
several
orders of magnitude faster than your
a matter of microseconds,
two
orders of magnitude faster than your
typical backend server, so you want to make sure to have Varnish answer
typical backend server, so you want to make sure to have Varnish answer
as many of the requests as possible directly from the cache.
as many of the requests as possible directly from the cache.
Varnish decides whether it can store the content or not based on the
Varnish decides whether it can store the content or not based on the response
response it gets back from the backend. The backend can instruct
it gets back from the backend. The backend can instruct Varnish to cache the
Varnish to cache the content with the HTTP response header
content with the HTTP response header `Cache-Control`. There are a few
`Cache-Control`. There are a few conditions where Varnish will not
conditions where Varnish will not cache, the most common one being the use of
cache, the most common one being the use of cookies. Since cookies indicates a client-specific web object, Varnish will by default not cache it.
cookies. Since cookies indicates a client-specific web object, Varnish will by
default not cache it.
This behaviour as most of Varnish functionality can be changed using policies
This behaviour as most of Varnish functionality can be changed using policies
written in the Varnish Configuration Language
. See the Users Guid
e
written in the Varnish Configuration Language
(VCL). Se
e
for more information on how to do that.
:ref:`users-guide-index`
for more information on how to do that.
Performance
Performance
~~~~~~~~~~~
~~~~~~~~~~~
...
...
doc/sphinx/tutorial/starting_varnish.rst
View file @
c510ea21
...
@@ -13,8 +13,8 @@ to it. :-)
...
@@ -13,8 +13,8 @@ to it. :-)
Make sure you have Varnish successfully installed (following one of the
Make sure you have Varnish successfully installed (following one of the
procedures described in "Installing Varnish" above.
procedures described in "Installing Varnish" above.
When properly installed you start Varnish with ``service varnish start``. This
will start
When properly installed you start Varnish with ``service varnish start``. This
Varnish if it isn't already running.
will start
Varnish if it isn't already running.
.. XXX:What does it do if it is already running? benc
.. XXX:What does it do if it is already running? benc
...
...
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