Back/Forward and Refresh in browser
2013-01-30 17:43
441 查看
What's the difference between pressing back/forward button and pressing refresh button? And what would happen inside a browser when we press those three button?
Basically,the back and forward button just simply "keep the previous state of the page",letting the page looks like the same to what it was before we made others request.In fact,browser will simply load contents from cache inside the browser(if the cache is still available) of this page,rather than sending a new request,we can check it out by using some tools like fiddler2.
And,when we press the refresh button,the browser would just simply "send the latest request again(no matter what request it is)".For example,when we open a new tab of browser and input a certain domain name,say "www.somenet.com",the browser will send a get request to www.somenet.com and then load the html.And if we press the refresh button,the browser will simply send that get request again and do the same work.And if we do some post request(like clicking a button, whick is a web server control button),and the page will be posted back to the server,and then if we press refresh button(or reload button),the browser will SIMPLY post this page back again,but note that the browser will ignore the change of contents in forms of this page.IT JUST SIMPLY SEND THE LATEST REQUEST AGAIN,NO MATTER WHAT THE LATEST REQUEST LOOKS LIKE.
By the way,IE,chrome,FF are in the same behaviour.
See also:
http://www.codeproject.com/Articles/134614/Way-To-Know-Which-Control-Has-Raised-PostBack
Basically,the back and forward button just simply "keep the previous state of the page",letting the page looks like the same to what it was before we made others request.In fact,browser will simply load contents from cache inside the browser(if the cache is still available) of this page,rather than sending a new request,we can check it out by using some tools like fiddler2.
And,when we press the refresh button,the browser would just simply "send the latest request again(no matter what request it is)".For example,when we open a new tab of browser and input a certain domain name,say "www.somenet.com",the browser will send a get request to www.somenet.com and then load the html.And if we press the refresh button,the browser will simply send that get request again and do the same work.And if we do some post request(like clicking a button, whick is a web server control button),and the page will be posted back to the server,and then if we press refresh button(or reload button),the browser will SIMPLY post this page back again,but note that the browser will ignore the change of contents in forms of this page.IT JUST SIMPLY SEND THE LATEST REQUEST AGAIN,NO MATTER WHAT THE LATEST REQUEST LOOKS LIKE.
By the way,IE,chrome,FF are in the same behaviour.
See also:
http://www.codeproject.com/Articles/134614/Way-To-Know-Which-Control-Has-Raised-PostBack
相关文章推荐
- selenium之 浏览器导航栏的三个按钮(back、forward、refresh)
- Professional JS(13.3.1Event Object in DOM/IE/Cross-Browser/UI&Focus&Mouse and Wheel event[half])
- Explain in detail the steps/processes that occur from the moment you type a URL in a browser and hit enter
- Cross-Platform Development in C++: Building Mac OS X, Linux, and, Windows Applications (Paperback) Dec.2007.eBook-BBL
- How to get browser name, version and operating system detail in selenium 2(Web driver)
- disable the browser's Forward/Back buttons(msdn)
- Open Baidu webpage and type in Chinese characters to start searching, press “Back” button to go to B
- Xingbang mobile crushing standing in the scientific and technological innovation forward
- Observer pattern and IStatusCallBack in VSIP
- get you in, and out and back to life---手机的未来是社交的聚合
- Sharepoint:The security validation for this page is invalid. Click Back in your Web browserSharepoin
- backtracking in Date Structures and Algorithm Analysis in C
- Generate CSV File and Force Browser to Download It in CodeIgniter
- Android facing front camera and facing back camera setting in HAL
- XBAP run in both Win-Form and Web browser
- [转载]Install Opera 12.16 Web Browser in CentOS/RHEL and Fedora
- [Vimperator] back and forward
- LeetCode – Refresh – Construct Binary Tree from Inorder and Postorder Traversal
- Get the content of an Iframe in Javascript – crossbrowser solution for both IE and Firefox
- The page has expired due to inactivity Please refresh and try again