Home >Backend Development >PHP Tutorial >Compare the differences between refresh, force refresh and reload in browsers

Compare the differences between refresh, force refresh and reload in browsers

巴扎黑
巴扎黑Original
2017-07-22 17:59:542458browse
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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn