Hello
In order to have customized error pages, I added some config into haproxy:
http-errors defaulterrorpages
errorfile 400 /etc/haproxy/errors/400.http
errorfile 403 /etc/haproxy/errors/403.http
errorfile 408 /etc/haproxy/errors/408.http
errorfile 500 /etc/haproxy/errors/500.http
errorfile 502 /etc/haproxy/errors/502.http
errorfile 503 /etc/haproxy/errors/503.http
errorfile 504 /etc/haproxy/errors/504.http
frontend fe_dmz
bind *:80
bind [::]:80
bind *:443 ssl crt /etc/haproxy/tls-certs/ alpn h2,http/1.1
bind [::]:443 ssl crt /etc/haproxy/tls-certs/ alpn h2,http/1.1
mode http
option httplog
errorfiles defaulterrorpages
…
There is a backedn returns 403, but sometimes the customized page shows, sometimes the default 403 page appears.
Then for some reason we modified our 403 page, haproxy returns 3 versions of 403 page now: the default one, the page before modification and the page after modification.
It seems that there is a cache somewhere? Is it a default behavior of Haproxy?
Thanks