Difference between F5, Ctrl + F5 and click on refresh button?
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 in the browser also generate different results.
What is the basic difference among all these requests?
CTRL+F5 Reloads the current page, ignoring cached content and generating the expected result.
I did small research regarding this topic and found different behavior for the browsers:
See my blog post "Behind refresh button" for more details.
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).