#
# This is a basic VCL configuration file for varnish.  See the vcl(7)
# man page for details on VCL syntax and semantics.
#
# $Id: vcl.conf 1197 2006-10-19 09:16:42Z des $
#

backend default {
        set backend.host = "127.0.0.1";
        set backend.port = "8080";
}

sub vcl_recv {
	# pass mode can't handle POST (yet)
        if (req.request == "POST") {
                pipe;
        }

        # force lookup even when cookies are present
        if (req.request == "GET" && req.http.cookie) {
                lookup;
        }
}

sub vcl_fetch {
        # force minimum ttl of 180 seconds
        if (obj.ttl < 180s) {
                set obj.ttl = 180s;
        }
}

