Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's the difference between "Normal Reload", "Hard Reload", and "Empty Cache and Hard Reload" in Chrome?

I recently discovered this new feature in Chrome:

reload options

I can figure out the difference between option 1 and option 3, and that option 2 is probably something in between, but I can't find any more precise information anywhere.

Anybody know the precise behavior of each of the 3 options?

like image 721
Samuel Rossille Avatar asked Feb 19 '13 23:02

Samuel Rossille


People also ask

What is empty cache and hard reload Chrome?

When you select Empty Cache and Hard Reload, it will empty the cache first and then re-download everything. This is useful if the web page makes after-the-fact downloads via JavaScript that weren't part of the page load. This is the best option to use if you want to reload a web page completely.

What does Chrome hard reload do?

A hard refresh clears your browser cache for a specific page, which forces it to load the most recent version of that page. This could include new scripts, styles or features.

What is hard cache reload?

Hard Reload– Forces browser to re-download items and reload. It is possible that used resources may come from a cached version. Press Control+F5 or Control+Shift+R to initiate hard reload. Empty Cache and Hard Reload– Cache for the page is cleared completely, and everything will be re-downloaded.

What does reload without cache mean?

This page in a nutshell: Bypassing your cache means forcing your web browser to re-download a web page from scratch, which can often solve website display glitches. It is also required after installing user scripts. Bypassing your cache is simple, safe, and causes no permanent changes.


2 Answers

Normal reload

The same thing as pressing F5. This will use the cache but revalidate everything during page load, looking for "304 Not Modified" responses. If the browser can avoid re-downloading cached JavaScript files, images, text files, etc. then it will.


Hard reload

Don't use anything in the cache when making the request. (which is equal to SHIFT+F5 No need to open Developer console) 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.


Note: This feature is only available when the developer tools are open.

like image 65
Andrew Rasmussen Avatar answered Oct 19 '22 09:10

Andrew Rasmussen


This also works in Mac OS X. Open developer tools, and then, on the reload button, either 1. secondary click (right click for right-handed mouse), or 2. long click, aka long press to see the menu.

In addition to this answer, hard reload often causes proxies, content delivery networks and other remote caches to be refreshed.

enter image description here

like image 36
dcorking Avatar answered Oct 19 '22 07:10

dcorking