[master] 033c75b Update example.vcl
Per Buer
perbu at varnish-software.com
Fri Feb 21 12:09:46 CET 2014
commit 033c75b7bb7a0692982c1c06dc2026c0382ca30b
Author: Per Buer <perbu at varnish-software.com>
Date: Fri Feb 21 10:54:08 2014 +0100
Update example.vcl
diff --git a/etc/example.vcl b/etc/example.vcl
index c093552..b99ec90 100644
--- a/etc/example.vcl
+++ b/etc/example.vcl
@@ -5,7 +5,7 @@
# The builtin VCL is called when there is no explicit explicit return
# statement.
#
-# See the VCL tutorial at https://www.varnish-cache.org/docs/trunk/tutorial/
+# See the VCL chapters in the Users Guide at https://www.varnish-cache.org/docs/
# and http://varnish-cache.org/trac/wiki/VCLExamples for more examples.
# Marker to tell the VCL compiler that this VCL has been adapted to the
@@ -20,16 +20,21 @@ backend default {
sub vcl_recv {
# Happens before we check if we have this in cache already.
- # See http://www.varnish-cache.org/docs/3.0/tutorial/vcl.html#vcl_recv
+ #
+ # Typically you clean up the request here, removing cookies you don't need,
+ # rewriting the request, etc.
}
sub vcl_backend_response {
# Happens after we have read the response headers from the backend.
- # See http://www.varnish-cache.org/docs/3.0/tutorial/vcl.html#vcl_fetch
+ #
+ # Here you clean the response headers, removing silly Set-Cookie headers
+ # and other mistakes your backend does.
}
sub vcl_deliver {
# Happens when we have all the pieces we need, and are about to send the
# response to the client.
- # See http://www.varnish-cache.org/docs/3.0/tutorial/vcl.html#vcl_fetch
+ #
+ # You can do accounting or modifying the final object here.
}
More information about the varnish-commit
mailing list