From the perspective of http protocol
F5 and Ctrl+R are both ordinary refreshes. If the page has been visited before, an empty request will be sent to the server, and the server will return 302, indicating that the resource has not been updated. Browser caching can be used.
Force refresh (ctrl+F5), regardless of whether the browser caches it, you must re-request resources from the origin server, and return 200 if successful.
You can use chrome development tools to view the specific process. It is probably such a process, but it is more complicated in practice.
Author: Zhihu user
Link:
Source: Zhihu
Copyright belongs to the author. For commercial reprinting, please contact the author for authorization. For non-commercial reprinting, please indicate the source.
The above is the detailed content of Compare the differences between refresh, force refresh and reload in browsers. For more information, please follow other related articles on the PHP Chinese website!