[2.1] varnish-2.1.5-3-g5cdfbfc

Bjørn Ruberg bjorn at varnish-cache.org
Tue Mar 1 19:03:13 CET 2011


commit 5cdfbfc561f3503f7734c4199124b2d44ec248d9
Author: Bjoern Ruberg <bjorn at doffen.hjemme.ruberg.no>
Date:   Tue Mar 1 18:58:24 2011 +0100

    fix typos and link

diff --git a/doc/sphinx/tutorial/cookies.rst b/doc/sphinx/tutorial/cookies.rst
index 5cb8f2c..e8fab9f 100644
--- a/doc/sphinx/tutorial/cookies.rst
+++ b/doc/sphinx/tutorial/cookies.rst
@@ -15,7 +15,7 @@ interest to the server.
 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
-accessing /admin/.::
+accessing /admin/::
 
   if ( !( req.url ~ ^/admin/) ) {
     unset req.http.Cookie;
@@ -26,8 +26,8 @@ like removing one out of several cookies, things get
 difficult. Unfortunately Varnish doesn't have good tools for
 manipulating the Cookies. We have to use regular expressions to do the
 work. If you are familiar with regular expressions you'll understand
-whats going on. If you don't I suggest you either pick up a book on
-the subject, read through the *pcrepattern* man page or read through
+what's going on. If you don't, I suggest you either pick up a book on
+the subject, read through the *pcrepattern* man page, or read through
 one of many online guides.
 
 Let me show you what Varnish Software uses. We use some cookies for
@@ -37,15 +37,15 @@ cookies and since Varnish will cease caching of pages when the client
 sends cookies we will discard these unnecessary cookies in VCL. 
 
 In the following VCL we discard all cookies that start with a
-underscore.::
+underscore::
 
   // Remove has_js and Google Analytics __* cookies.
   set req.http.Cookie = regsuball(req.http.Cookie, "(^|;\s*)(_[_a-z]+|has_js)=[^;]*", "");
   // Remove a ";" prefix, if present.
   set req.http.Cookie = regsub(req.http.Cookie, "^;\s*", "");
 
-Let me show you an example where we remove everything the the cookies
-named COOKIE1 and COOKIE2 and you can marvel at it.::
+Let me show you an example where we remove everything but the cookies
+named COOKIE1 and COOKIE2 and you can marvel at it::
 
   sub vcl_recv {
     if (req.http.Cookie) {
diff --git a/doc/sphinx/tutorial/sizing_your_cache.rst b/doc/sphinx/tutorial/sizing_your_cache.rst
index 1b2449c..4df3f9d 100644
--- a/doc/sphinx/tutorial/sizing_your_cache.rst
+++ b/doc/sphinx/tutorial/sizing_your_cache.rst
@@ -12,7 +12,7 @@ task. A few things to consider:
    to only cache images a little while or not to cache them at all if
    they are cheap to serve from the backend and you have a limited
    amount of memory.
- * Watch the n_lru_nuked counter with varnishstat or some other
+ * Watch the n_lru_nuked counter with :ref:`varnishstat`_ or some other
    tool. If you have a lot of LRU activity then your cache is evicting
    objects due to space constraints and you should consider increasing
    the size of the cache.



More information about the varnish-commit mailing list