
If no, then it requests the file from the web server. When the browser reads an asset reference in the HTML, it first looks in its local cache to see if it has already stored away that file. Why didn’t the browser show the changes you made in the stylesheet? Why? Why did you have to change the version number to make it show in the browser? Explaining How the Browsers Work with Assets Once it does, then the browser will request the new file. Instead, the asset’s URL needs to change. It’s not feasible to tell all of the previous visitors to clear their browser’s cache.

Why? Because every single person who has already visited the website has a cached (stored) version of the asset file. This is a problem.Ĭlearing the cache is NOT a feasible strategy. The browser is not receiving the new changes because it doesn’t know that you changed it.

:max_bytes(150000):strip_icc()/chrome-version-number-003ba79eb0e2498bbc96b125321310f1.png)
Never ever say: Clear the browser’s cache.
