html - Force browser cache clearance across all browsers -
i have following code on (all html webpages) :
<meta http-equiv="cache-control" content="max-age=0" /> <meta http-equiv="cache-control" content="no-cache" /> <meta http-equiv="expires" content="0" /> <meta http-equiv="expires" content="tue, 01 jan 1980 1:00:00 gmt" /> <meta http-equiv="pragma" content="no-cache" />
however, not clearing caches , code updates not showing up. there way accomplish cache refresh?
it better use standard http headers control caching server side, rather using http-equiv
meta tags in html. allows controlling proxy caching , other intermediaries, making lot more effective. meta tags don't if have external css , js files. these still cached, may explain why isn't working correctly you. have append randomly generated query string resource paths browser appears loading brand new resource every time.
the http-equiv
values above not in html 5 specification, not valid. can read more on using http headers correctly in useful caching guide.