What's the difference between F5 refresh and Shift+F5 in Google Chrome browser?

匿名 (未验证) 提交于 2019-12-03 01:12:01

问题:

What's the difference between F5 refresh and SHIFT+F5 in Google Chrome browser?

The reason I ask is because sometimes when using F5 on my site the pictures don't load properly but when using SHIFT+F5 the reload works.

回答1:

It ignores the cached content when refreshing...

https://support.google.com/a/answer/3001912?hl=en

F5 or Control + R = Reload the current page
Control+Shift+R or Shift + F5 = Reload your current page, ignoring cached content



回答2:

The difference is not just for Chrome but for most of the web browsers.

F5 refreshes the web page and often reloads the same page from the cached contents of the web browser. However, reloading from cache every time is not guaranteed and it also depends upon the cache expiry.

Shift + F5 forces the web browser to ignore its cached contents and retrieve a fresh copy of the web page into the browser.

Shift + F5 guarantees loading of latest contents of the web page.
However, depending upon the size of page, it is usually slower than F5.

You may want to refer to: What requests do browsers' "F5" and "Ctrl + F5" refreshes generate?



回答3:

F5 refreshes the page you are currently on. Ctrl+F5 or Shift+F5 will re-download cached content (ie. JavaScript files, images, etc...)

You can also hit F12 for developer tools in IE, CHROME, etc...


Consider the following types as well:

Normal reload

The same thing as pressing F5. This will use the cache in every way possible. If the browser can avoid re-downloading JavaScript files, images, text files, etc. then it will.


Hard reload

Don't use anything in the cache when making the request. Force the browser do re-download every JavaScript file, image, text file, etc.


Empty Cache and Hard Reload

Obviously if the cache is empty then it will have to do a hard reload. This will again force the browser to re-download everything. However, if the page makes any after-the-fact downloads via JavaScript that weren't part of page load, then these might still use the cache, which is where emptying the cache helps because it makes sure that even these won't use cached files.



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!