Log in

View Full Version : forcing chrome to clear cache



gib65
11-04-2015, 07:24 PM
Hello,

Is there some kind of meta tag in HTML to force Chrome to clear its cache before loading the page? Whenever I make a change to my website, in order to see it in Chrome, I have to hit F12, right-click the refresh button, and select "Empty Cache and Hard Reload". There must be some way of doing this automatically, like in an HTML meta tag.

mlegg
11-05-2015, 12:11 AM
I was looking into this last week actually. I have a website to update in a few days, so I didn't get to try it yet though. Put this in the html on all the pages for the site.


<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="0" />