varnish changes HEAD to GET on backend request
Taylan Develioglu
tdevelioglu at ebuddy.com
Wed Apr 14 17:46:11 CEST 2010
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?
More information about the varnish-misc
mailing list