The real solution of course is to stop writing webapps - eviltoast