Sometimes, when we update a CSS stylesheet, our page appears not to change. This is especially frequent when we’re working on static HTML files in the public/
folder.
The cause is usually Chrome’s aggressive “caching”, i.e. re-using static assets that it has already downloaded (for performance reasons). If we refresh an HTML page that we’ve updated, Chrome won’t necessarily also refresh all <link>
ed CSS files — unless we ask it to by “hard” refreshing.
To do so:
View > Developer
menuInspect
+
Shift+
J (on Windows) or Option+
Command+
J (on Mac)Open Dev Tools:
With Dev Tools open, “hard” refresh:
Your HTML document should now have the latest CSS and any other linked assets (like images or javascripts).