html - Force browser to reload index.htm -
html - Force browser to reload index.htm -
how can forcefulness browser load newest version of index.htm when page loaded entering url www.mydomain.com/index.htm or www.mydomain.com in browser's address field , pressing enter.
i'm trying in chrome , newest version of index.htm apparently loaded, when refresh manually (f5), or when url in browser's address field , press enter.
i guess doing extremely stupid, because when searched issue, find solutions how create browser reload .js , .css files appending ?v=xxxx file names. how should work, if not newest version of index.htm page, in doing these modifiactions, loaded??
i tried putting
<meta http-equiv="cache-control" content="no-cache">
in <head>
of index.htm. not seem have effect.
any help appreciated!
thanks, linus
ok, apparently no-cache not enough. next trick:
<meta http-equiv="cache-control" content="no-cache, must-revalidate, post-check=0, pre-check=0"> <meta http-equiv="expires" content="sat, 31 oct 2014 00:00:00 gmt"> <meta http-equiv="pragma" content="no-cache">
html caching reload
Comments
Post a Comment