Chat code sends purge request to the URL that returns 404 (release-215)

Backport #3066 to the upcoming release