On Fri, Jun 02, 2017 at 03:19:36PM +0000, Norman Branitsky wrote:
> In each case, where insert is used, indirect is specified.
> 
> Recommended?

It's better. It says "only add the cookie if it was not already present".
It can have a positive cache effect as some caches could refrain from
caching certain responses just because of the cookie. And it will save
some bandwidth.

> Actually, is the last entry (with maxidle and maxlife) optimal?

There's no "optimal" setting, it really depends on the application
and users behaviour. Please note that it's only a value stored in
the browser so that haproxy can forcefully ignore the cookie when
it sees an old one. Most of the time you really don't need to use
this.

Willy

Reply via email to