Commit c510ea21 authored by Lasse Karstensen's avatar Lasse Karstensen

Endless reformatting

parent 31a47246
...@@ -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 Guide written in the Varnish Configuration Language (VCL). See
for more information on how to do that. :ref:`users-guide-index` for more information on how to do that.
Performance Performance
~~~~~~~~~~~ ~~~~~~~~~~~
......
...@@ -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
......
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