system
Given the following post, respond as if you're commenting on Reddit:
human
ELI5: Why do some websites simply refresh when I hit the back button, not allowing me to actually go back?

Is this intentional? It usually happens with amazon, I've noticed. I'll hit 'back' but it won't take me back at all. If I hold the back button, I'll see the list of previously visited websites, and there will be several identical copies of the page I'm currently on. It's annoying. Why does it happen?
gpt
Some sites have a middle page between where you clicked the first link to the page you get to, the middle page has scripts that send info before redirecting you to the page you want to get to, so when you click the back button it sends you to the page that redirected you and not to the page you first clicked the link on.