• Tollef Fog Heen's avatar
    Merge r3542: · 3fbfb293
    Tollef Fog Heen authored
    Implement the new-purge case where the entire expression comes
    from VCL.
    
    It is possible to instigate purges two ways from VCL now:
    
            sub vcl_recv {
                    # Purge the req.url
                    if (req.request == "PURGE") {
                            purge (req.url == req.url);
                            error 410;
                    }
    
                    # Take entire purge instruction from "Purge:" header
                    if (req.request == "PURGESTR") {
                            purge ("" req.http.purge);
                            error 410;
                    }
    
    Testcase for this.
    
    
    
    git-svn-id: http://www.varnish-cache.org/svn/branches/2.0@3724 d4fa192b-c00b-0410-8231-f00ffab90ce4
    3fbfb293
c00022.vtc 2.75 KB