How does the Back button in a web browser work?

前端 未结 8 1131
北恋
北恋 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:18

    a browser always stored the pages for its remembering and when we press the back button it doesn't send the request to server for the previous page instead it just see its cache where it stored the pages and it follow the LIFO rule that is why it give us that page first on pressing the back button which we opened in the last

    0 讨论(0)
  • 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.

    0 讨论(0)
提交回复
热议问题