问题
Hello I have often experienced while developing my web applications that pressing F5 or refresh doesn't produce or refresh the proper result. But when we hit CTRL + F5 it generates the correct result. What is the basic difference between simple F5 and CTRL + F5?
I have often also experienced that pressing simple F5 and pressing the refresh
button on browser also generate different results.
Can any body tell me what is the basic difference among all these requests.
回答1:
CTRL+F5 Reloads the current page, ignoring cached content and generating the expected result.
回答2:
I did small research regarding this topic and found different behavior for the browsers:
See my blog post "Behind refresh button" for more details.
回答3:
F5 and the refresh button will look at your browser cache before asking the server for content.
Ctrl + F5 forces a load from the server.
You can set content expiration headers and/or meta tags to ensure the browser doesn't cache anything (perhaps something you can do only for the development environment).
回答4:
F5 triggers a standard reload.
Ctrl + F5 triggers a forced reload. This causes the browser to re-download the page from the web server, ensuring that it always has the latest copy.
Unlike with F5, a forced reload does not display a cached copy of the page.
回答5:
F5 is a standard page reload.
and
CTRL + F5 refreshes the page by clearing the cached content of the page.
Having cursor in the address field and pressing ENTER will also do the same as CTRL + F5
来源:https://stackoverflow.com/questions/8589760/difference-between-f5-ctrl-f5-and-click-on-refresh-button