[4.0] 9d5e807 Formatting

Lasse Karstensen lkarsten at varnish-software.com
Tue Apr 1 15:09:52 CEST 2014


commit 9d5e80703499aa0d175b937983ba0a3fa9fa1cd1
Author: Lasse Karstensen <lkarsten at varnish-software.com>
Date:   Thu Mar 20 17:35:13 2014 +0100

    Formatting

diff --git a/doc/sphinx/users-guide/increasing-your-hitrate.rst b/doc/sphinx/users-guide/increasing-your-hitrate.rst
index 886659e..9d8e0af 100644
--- a/doc/sphinx/users-guide/increasing-your-hitrate.rst
+++ b/doc/sphinx/users-guide/increasing-your-hitrate.rst
@@ -235,9 +235,7 @@ Age
 ~~~
 
 Varnish adds an 'Age' header to indicate how long the object has been
-kept inside Varnish. You can grep out 'Age' from `varnishlog` like this::
-
-  varnishlog -i TxHeader -I ^Age
+kept inside Varnish. You can grep out 'Age' from `varnishlog` with ``varnishlog -i TxHeader -I ^Age``.
 
 Pragma
 ~~~~~~
@@ -247,10 +245,10 @@ header. You could easily add support for this header in VCL.
 
 In `vcl_backend_response`::
 
-  if (beresp.http.Pragma ~ "nocache") {
+    if (beresp.http.Pragma ~ "nocache") {
         set beresp.uncacheable = true;
-	set beresp.ttl = 120s; // how long not to cache this url.
-  }
+        set beresp.ttl = 120s; // how long not to cache this url.
+    }
 
 Authorization
 ~~~~~~~~~~~~~
@@ -258,12 +256,12 @@ Authorization
 If Varnish sees an 'Authorization' header it will pass the request. If
 this is not what you want you can unset the header.
 
-Overriding the time-to-live (ttl)
+Overriding the time-to-live (TTL)
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
 Sometimes your backend will misbehave. It might, depending on your
-setup, be easier to override the ttl in Varnish than to fix your
-somewhat cumbersome backend. 
+setup, be easier to override the TTL in Varnish then to fix your
+somewhat cumbersome backend.
 
 You need VCL to identify the objects you want and then you set the
 'beresp.ttl' to whatever you want::
@@ -274,7 +272,7 @@ You need VCL to identify the objects you want and then you set the
       }
   }
 
-This example will set the ttl to 5 days for the old legacy stuff on
+This example will set the TTL to 5 days for the old legacy stuff on
 your site.
 
 Forcing caching for certain requests and certain responses



More information about the varnish-commit mailing list