About response header and request header condition

Jewel Nuruddin jewel.nuruddin at eastbeam.co.jp
Thu Feb 23 07:29:42 CET 2012


Hello all

I have one questions

in my VCL configuration

sub vcl_recv {

### pass if http hearder response is "SMARTPHONE:1"
          if (req.http.SMARTPHONE ~ "1") {
                return (pass);
                }
}

in my page I set the above header response so if the responses match it
will not cache
but it always cache? can some one help me why ?

One more question, can varnish identified for caching or not caching both
in http header "response" and "request"?

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20120223/cdb0ad31/attachment.html>


More information about the varnish-misc mailing list