Back Button (Browser Behavior)

前端 未结 2 1092
难免孤独
难免孤独 2021-01-11 11:55

When the back button is pressed in a web browser, is the default action to send a get request or serve from the browsers history?

If its browser specific, what would

2条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-11 12:03

    I just tested this in Chrome and Firefox for fun

    When I press back in Chrome on a Google search page, no requests happen. The browser pulls from cache.

    In Firefox, I actually get a 204 No Content with the path being http://clients1.google.ca/generate_204 from Google.

    I found this using Charles proxy so it's nothing scientific :)

提交回复
热议问题