News for hackers. Stuff that matters.
Re:Twitter is being investigated over data collection in its... by xxs on Sunday October 14, 2018 @07:20PM (#18216171)
location.replace removes the back button interaction, i.e. history.

I have always preferred to use it (location.replace) within the same site. Also it allows to better control browser cache policies.

Although it has been almost a decade since, I doubt much has changed.

Re:Twitter is being investigated over data collection in its... by ceejayoz on Sunday October 14, 2018 @08:14PM (#18216428)
> location.replace removes the back button interaction, i.e. history.

A 301/302 redirect works just fine for this.

Re:Twitter is being investigated over data collection in its... by TeMPOraL on Monday October 15, 2018 @01:54AM (#18217684)
Yup. The RFC is literally full of phrases like "status code indicates that the target resource has been assigned a new permanent URI and any future references to this resource ought to use one of the enclosed URIs. Clients with link-editing capabilities ought to automatically re-link references to the effective request URI to one or more of the new references sent by the server, where possible." (emphasis mine).