Added support to cach invalid data on POST

RFC @doomspork.

This will catch invalid data on post.