For the record, added my comment to the VIP at
https://github.com/varnishcache/varnish-cache/wiki/VIP8:-No-pipe-in-builtin.vcl-in-V5
.


On Wed, Apr 6, 2016 at 9:27 AM, Poul-Henning Kamp <[email protected]>
wrote:

> Can we make builtin::vcl_recv{} look like this in Varnish5 ?
>
> sub vcl_recv {
>     if (req.method == "PRI" ||          /* HTTP/2.0 */
>       req.method == "CONNECT" ||
>       req.method == "OPTIONS" ||
>       req.method == "TRACE") {
>         return (synth(405));
>     }
>     if (req.method != "GET" && req.method != "HEAD") {
>         /* We only deal with GET and HEAD by default */
>         return (pass);
>     }
>     if (req.http.Authorization || req.http.Cookie) {
>         /* Not cacheable by default */
>         return (pass);
>     }
>     return (hash);
> }
>
> --
> Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
> [email protected]         | TCP/IP since RFC 956
> FreeBSD committer       | BSD since 4.3-tahoe
> Never attribute to malice what can adequately be explained by incompetence.
>
> _______________________________________________
> varnish-dev mailing list
> [email protected]
> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-dev
>
_______________________________________________
varnish-dev mailing list
[email protected]
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-dev

Reply via email to