302 Moved Temporarily problem

Michael postmaster at softsearch.ru
Wed Nov 19 18:51:52 CET 2008


Hi,

I don't want cache 302 beckend responses and correct vcl_fetch():

sub vcl_fetch {
    if (!obj.cacheable) {
        pass;
    }

    # don't cache redirects
    if (obj.status == 302) {
        pass;
    }

    if (obj.http.Set-Cookie) {
        pass;
    }
    set obj.prefetch =  -30s;
    deliver;
}

But it does'n work.

-- 
Michael




More information about the varnish-misc mailing list