To be fair, this only happens due to programming bugs on the website. You can easily store the scroll position in the HTML5 pushstate API. The big websites like Twitter and Facebook get this right.
Although to be "fair", that's probably largely intentional crippling of the site to push users towards their app.