erp5_cluster: leave ERP5 set the haproxy cookie
How to remove the haproxy sticky cookie?
- As Haproxy was configured to always set a sticky cookie on the first request, browser was never able to cache the first HTML page accessed.
- This cookie increases the number of cache entry in the CDN for anonymous users in case Vary: Cookie header is used. So, it makes CDN useless.
The implemented solution (http://git.erp5.org/gitweb/erp5.git/commit/fa6ceb993bc1d6442f36001166dd3d112efe5949?js=1) is to set the sticky cookie only when an ERP5 user get authenticated (the goal of the sticky cookie to keep a user on the same ERP5 node to use RAM cache)
Now that this commit has been in master for more than a month, I'll update epr5 software release (cluster and master) to configure HAProxy to not set the sticky cookie (note that the postonly option removed in the commit was only on my development branch): http://git.erp5.org/gitweb/slapos.git/commitdiff/c22d3e9077df7e0d896f142177cafaea9edffe45?hp=123e847453e917045d57df84605d2586192984ef;js=1