HAProxy community

How to resolve force page refresh

Hi I have haproxy working just fine the problem is that somebody’s web cache needs to be emptied or their page needs to be refreshed in order to see the switch between servers. I’m not using identical servers I have one that indicates that the main server is offline using round-robin mode.

How you make sure browsers don’t cache your site to aggressively and show a change in backend response immediately depends on the response headers of your backend server and the way you implemented those (HTML).

This is not really haproxy related and there is no “fix” you can deploy with haproxy.