We have talked a bit about how vcl_error interacts with streaming, and the idea so far has been to remove vcl_error and add a synthetic capability to vcl_deliver. Last night, phk had an idea and he and I had a chat about how we could go about not getting rid of vcl_error and its implications. Further, we had a bit of discussion in the office this morning about this and some sort of consensus emerged.
- vcl_error stays, but delivers directly and does not pass vcl_deliver. vcl_error is an error handler and should not be used for redirects and similar - vcl_synth is added, for any kind of synthetic content, typically redirects. The default vcl_synth can include the necessary couple of lines to handle redirects directly, so you can then just do return(synth(301, "http://varnish-cache.org/")); wherever you want to redirect. Both vcl_error and vcl_synth terminate and does not go through vcl_deliver, vcl_fetch or any other place. Does this sound roughly sane (and could Kristian and Martin please correct any inaccuracies)? -- Tollef Fog Heen Technical lead, Varnish Software t: +47 21 98 92 64 _______________________________________________ varnish-dev mailing list [email protected] https://www.varnish-cache.org/lists/mailman/listinfo/varnish-dev
