Pass and pipe in trunk version
Poul-Henning Kamp
phk at phk.freebsd.dk
Mon May 26 13:42:17 CEST 2008
In message <c1dd32e40805260420x7d6360d7s757ef3dd5a1437f5 at mail.gmail.com>, "anda
n andan" writes:
>Hi.
>
>According to: http://varnish.projects.linpro.no/wiki/FAQ#ShouldIusepipeorpassinmyVCLcode
>
>pipe must be used to handle POST requests, but according to:
>
>http://varnish.projects.linpro.no/wiki/VCLExampleDefault
>
>POST requests are handled with pass.
>
> if (req.request != "GET" && req.request != "HEAD") {
> /* We only deal with GET and HEAD by default */
> pass;
> }
>
>
>What document is wrong ?
Depends which varnish version you use.
-trunk can PASS requests with content, so that is how it should be
in the future.
Older versions can not, and need to use PIPE.
The default VCL built into varnish always gets this right.
--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG | TCP/IP since RFC 956
FreeBSD committer | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.
More information about the varnish-misc
mailing list