[3.0] d2e2591 backend cookies
Tollef Fog Heen
tfheen at varnish-cache.org
Thu May 24 14:51:10 CEST 2012
Author: Per Buer <perbu at varnish-software.com>
Date: Wed Feb 29 16:17:09 2012 +0100
diff --git a/doc/sphinx/tutorial/cookies.rst b/doc/sphinx/tutorial/cookies.rst
index 0278712..20fd302 100644
@@ -13,6 +13,9 @@ This can be overly conservative. A lot of sites use Google Analytics
interest to the server.
+Cookies from the client
For a lot of web application it makes sense to completely disregard the
cookies unless you are accessing a special part of the web site. This
VCL snippet in vcl_recv will disregard cookies unless you are
@@ -63,3 +66,12 @@ cookies named COOKIE1 and COOKIE2 and you can marvel at it::
The example is taken from the Varnish Wiki, where you can find other
scary examples of what can be done in VCL.
+Cookies coming from the backend
+If your backend server sets a cookie using the Set-Cookie header
+Varnish will not cache the page. A hit-for-pass object (see
+:ref:`tutorial_vcl_fetch_actions`) is created. So, if the backend
+server acts silly and sets unwanted cookies just unset the Set-Cookie
+header and all should be fine.
More information about the varnish-commit