How does the Back button in a web browser work?

前端 未结 8 1190
北恋
北恋 2020-11-28 02:57

I searched the Web about this question but I found nothing:

What is the logic of the back button? What is happening when we hit the back button on a Web browser?

8条回答
  •  天涯浪人
    2020-11-28 03:19

    I like to think of it as re-issuing my last request. If you performed a simple GET, it would probably return the same thing it did last time (minus dynamic content). If you had done a POST, you're going to resubmit the form (after confirmation) to the server.

提交回复
热议问题