Page refresh and forced refresh + clear cache operation during Google Chrome debugging

Browser refreshes are generally divided into three types, namely: 1. Normal reloading. 2. Hard reload (forced refresh). 3. Clear cache and hard reload

1. Normal reload

Trigger method: ① F5 ② Ctrl + R ③ Enter on the address bar ④ Click the link

The cache will be used if the cache does not expire. This way the browser can avoid re-downloading JavaScript files, images, text files, etc., then it will read the information in the cache.

2. Hard reload (forced refresh)

Trigger method: ① Ctrl + F5 (my usual one) ② Shift + F5 ③ Ctrl + Shift + R

Force the browser to re-download each JavaScript file, image, text file, etc. (required skills for page JS debugging).

3. Clear cache and hard reload

Trigger method: first open the console of the browser (shortcut key: F12), then right-click on the refresh button of the page, select the last item to clear the cache and hard reload. This ensures a full reload.

Guess you like

Origin blog.csdn.net/AdminGuan/article/details/129264840