<div dir="ltr">For the record, added my comment to the VIP at <a href="https://github.com/varnishcache/varnish-cache/wiki/VIP8:-No-pipe-in-builtin.vcl-in-V5">https://github.com/varnishcache/varnish-cache/wiki/VIP8:-No-pipe-in-builtin.vcl-in-V5</a>.<div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 6, 2016 at 9:27 AM, Poul-Henning Kamp <span dir="ltr"><<a href="mailto:phk@phk.freebsd.dk" target="_blank">phk@phk.freebsd.dk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Can we make builtin::vcl_recv{} look like this in Varnish5 ?<br>
<br>
sub vcl_recv {<br>
    if (req.method == "PRI" ||          /* HTTP/2.0 */<br>
      req.method == "CONNECT" ||<br>
      req.method == "OPTIONS" ||<br>
      req.method == "TRACE") {<br>
        return (synth(405));<br>
    }<br>
    if (req.method != "GET" && req.method != "HEAD") {<br>
        /* We only deal with GET and HEAD by default */<br>
        return (pass);<br>
    }<br>
    if (req.http.Authorization || req.http.Cookie) {<br>
        /* Not cacheable by default */<br>
        return (pass);<br>
    }<br>
    return (hash);<br>
}<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20<br>
phk@FreeBSD.ORG         | TCP/IP since RFC 956<br>
FreeBSD committer       | BSD since 4.3-tahoe<br>
Never attribute to malice what can adequately be explained by incompetence.<br>
<br>
_______________________________________________<br>
varnish-dev mailing list<br>
<a href="mailto:varnish-dev@varnish-cache.org">varnish-dev@varnish-cache.org</a><br>
<a href="https://www.varnish-cache.org/lists/mailman/listinfo/varnish-dev" rel="noreferrer" target="_blank">https://www.varnish-cache.org/lists/mailman/listinfo/varnish-dev</a><br>
</font></span></blockquote></div><br></div>