First, hi to all.

I have the following problem I was hoping someone could shed some light
on:

The default behavior of varnish 2.1 seems to be changing HEAD requests
into GET before sending them to the backend.

I tried changing bereq.request to "HEAD" if req.request is "HEAD" in
vcl_pass and vcl_miss:


 sub vcl_pass {
     if (req.request == "HEAD") {
         set bereq.request = "HEAD";
     }
 }

 sub vcl_miss {
     if (req.request == "HEAD") {
         set bereq.request = "HEAD";
     }
 }

And it didn't help, what am I doing wrong here?


_______________________________________________
varnish-misc mailing list
[email protected]
http://lists.varnish-cache.org/mailman/listinfo/varnish-misc

Reply via email to