Commit 05d0d530 authored by Per Buer's avatar Per Buer

rewrite for readability

parent 79a0da1f
...@@ -8,23 +8,23 @@ clients and tries to answer them from its cache. If it cannot answer ...@@ -8,23 +8,23 @@ clients and tries to answer them from its cache. If it cannot answer
the request from its cache it will forward the request to the backend, the request from its cache it will forward the request to the backend,
fetch the response, store it and deliver it to the client. fetch the response, store it and deliver it to the client.
When Varnish has a cached response ready it is typically delivered in
a matter of microseconds, several orders of magnitude faster than your
typical application server, so you want to make sure to have it answer
as many of the requests as possible.
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 it's gets back from the backend. The backend can instruct response it's gets back from the backend. The backend can instruct
Varnish to cache the content with the HTTP response header Varnish to cache the content with the HTTP response header
Cache-Control. Cache-Control. There are a few other conditions where Varnish will not
cache, the most common one being cookies. Since cookies is a good
Varnish will be very careful when it encounters cookies, either coming indication that a web object is personlised, Varnish will with it's
from the client or from the origin server. When Varnish sees a default configuration, not cache it.
Set-Cookie header on a response it decides that the object is not
cacheable. When there is a Cookie header in the request it will also
refuse to serve a cached object and rather ask the backend for version
of the object that is tailored to the request.
This behaviour and most other behaviour can be changed using policies This behaviour and most other behaviour can be changed using policies
written in the Varnish Configuration Language. See the Users Guide written in the Varnish Configuration Language. See the Users Guide
for more information on how to do that. for more information on how to do that.
Performance Performance
~~~~~~~~~~~ ~~~~~~~~~~~
......
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