I had a similar problem when I started using history.pushstate and discovered that it deletes the post data transferred for the page and refreshing gives the result of a get request without parameters.