I'm trying to disable the cache in my AngularJS app, but it isn't working with the following code:
$http.get("myurl",{cache:false})
When I use "myurl&random="+Math.random()
, the cache is disabled; but, I'd like a different approach.
I'm trying to disable the cache in my AngularJS app, but it isn't working with the following code:
$http.get("myurl",{cache:false})
When I use "myurl&random="+Math.random()
, the cache is disabled; but, I'd like a different approach.
Here is what I did, simply change it to
i didn't test it.i found something in this url.Have a look at this Angularjs - how to clear $routeProvider's caches of templateUrl
try like this
This is already answered here.
Pasting code snippet from the link for your reference.