Commit f3920297 authored by Vincent Pelletier's avatar Vincent Pelletier

erp5.balancer: Make haproxy add no-cache header when setting cookie.

Reason for not using postonly instead is that anonymous persistence may be
good in some erp5 use cases (ex: shopping cart), and also authentication
cookie may outlive haproxy cookie and may lead to no persistence afterward.
parent dd939dd8
...@@ -350,7 +350,7 @@ md5sum = dedfe759c3421e0186703fe1257bae8f ...@@ -350,7 +350,7 @@ md5sum = dedfe759c3421e0186703fe1257bae8f
[template-haproxy-cfg] [template-haproxy-cfg]
< = download-base < = download-base
filename = haproxy.cfg.in filename = haproxy.cfg.in
md5sum = 1dcb02721a606360271ca19d2f4d135b md5sum = d27fe9218cb737d8a76ba5df4740f947
[template-logrotate-base] [template-logrotate-base]
< = template-jinja2-base < = template-jinja2-base
......
...@@ -11,7 +11,7 @@ defaults ...@@ -11,7 +11,7 @@ defaults
retries 1 retries 1
option redispatch option redispatch
maxconn 2000 maxconn 2000
cookie SERVERID insert cookie SERVERID insert nocache
balance roundrobin balance roundrobin
stats uri /haproxy stats uri /haproxy
stats realm Global\ statistics stats realm Global\ statistics
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment