Chat code sends purge request to the URL that returns 404

Backport #3066 to the upcoming release