how to clear browser cache using angularjs or javascript? -
i developed application angularjs , c program. when api c program change data, view should change. after refreshing page new data not updating in view.
when clearing browser's cache manually, new data getting updated in view. problem cache only.
in solution issue, have added following html tags.
<meta http-equiv="cache-control" content="max-age=0" /> <meta http-equiv="cache-control" content="no-cache" /> <meta http-equiv="cache-control" content="no-store" /> <meta http-equiv="expires" content="0" /> <meta http-equiv="expires" content="-1" /> <meta http-equiv="expires" content="tue, 01 jan 1980 1:00:00 gmt" /> <meta http-equiv="pragma" content="no-cache" />
these working, fails, , again catching cache data.
so please know, if there solution using angularjs or javascript?
thanks in advance!
the browser respect cache time set response particular asset. subsequent should cache until timeout reached.
its possible have click here ignoring this.
Comments
Post a Comment