git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1793
d4fa192b-c00b-0410-8231-
f00ffab90ce4
# if (!obj.cacheable) {
# pass;
# }
-# if (resp.http.Set-Cookie) {
+# if (obj.http.Set-Cookie) {
# pass;
# }
# insert;
#}
#
+#
+## Called before a cached object is delivered to the client
+#
+#sub vcl_deliver {
+# deliver;
+#}
+#
## Called when an object nears its expiry time
#
#sub vcl_timeout {
# discard;
#}
+#
+## Called when an object is about to be discarded
+#
+#sub vcl_discard {
+# discard;
+#}
.\"
.\" $Id$
.\"
-.Dd July 13, 2007
+.Dd August 3, 2007
.Dt VCL 7
.Os
.Sh NAME
The following code is the equivalent of the default configuration with
the backend address set to "backend.example.com" and no backend port
specified.
-.\" Keep this in synch with bin/varnishd/mgt_vcc.c
+.\" Keep this in synch with bin/varnishd/mgt_vcc.c and etc/default.vcl
.Bd -literal -offset 4n
backend default {
set backend.host = "backend.example.com";
deliver;
}
-sub vcl_discard {
+sub vcl_timeout {
discard;
}
-sub vcl_timeout {
+sub vcl_discard {
discard;
}
.Ed