All pastes #948038 Raw Edit

Someone

public text v1 · immutable
·published 2008-03-18 21:29 UTC
rendered paste body
backend default {
        set backend.host = "127.0.0.1";
        set backend.port = "3001";       
}

sub vcl_recv {
        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;
        }
#       if (req.http.url ~ "^/stylesheets/" || req.http.url ~ "img") {
                set obj.http.Cache-Control = "max-age=10800, max-stale=18000, public";
#       }
}