Difference between F5, Ctrl + F5 and click on refresh button?

后端 未结 6 1287
挽巷
挽巷 2021-01-30 12:46

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

6条回答
  •  孤城傲影
    2021-01-30 13:15

    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).

提交回复
热议问题