When it does that, just go back to geekhacks index without hitting back or forward.
That is how I prevent mine from double posting.
It is probably a forum or server setting, maybe the wrong port or IP is set and when the server tries to parse the information it messes up.
Though it is a 504 time out error so it is probably server setting related.