return (lookup) means

dhanushka ranasinghe parakrama1282 at
Tue Sep 25 15:55:15 CEST 2012

Hi.. guys ,

In my varnish code im using  "return (lookup)" ,

sub vcl_recv {

if ( ~ "^$") {
        set req.backend = bkcacheorg;
        return (lookup);


Please correct me if im wrong varnish doc says   *return (lookup)
means *  "Varnish to deliver content from cache even if the request
othervise indicates that the request should be passed."

i just want to know im using "return (lookup)"  , if the content does not
found in varnish cache , its it going to talk to  backend and get the
correct content...

Thank you
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the varnish-misc mailing list