Not caching immediately?

Aaron Pfeifer aaron.pfeifer at gmail.com
Fri Feb 1 20:09:57 CET 2008


Good question.  I actually tried that and it didn't seem to have the same
effect.  I didn't try diving into why it wouldn't have the same effect as
the config I'm currently using:

sub vcl_recv {
  ...stuff to determine whether to lookup...

  if (req.request == "POST") {
    set req.http.connection = "close";
    pipe;
  }
}

On Feb 1, 2008 6:14 AM, Stig Sandbeck Mathisen <ssm at linpro.no> wrote:

> "Aaron Pfeifer" <aaron.pfeifer at gmail.com> writes:
>
> > (1) Upgrade to trunk (I was using 1.1.2)
>
> May not be the best choice for all, I think
>
> > (2) Add "set req.http.connection = "close";" immediately before the
> > pipe for a POST
>
> Would this be an appropriate config snippet?
>
> vcl_pipe {
>  set req.http.connection = "close";
> }
>
> --
> Stig Sandbeck Mathisen, Linpro
> _______________________________________________
> varnish-misc mailing list
> varnish-misc at projects.linpro.no
> http://projects.linpro.no/mailman/listinfo/varnish-misc
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20080201/33c8a0d3/attachment-0001.html>


More information about the varnish-misc mailing list