Skip to content Skip to sidebar Skip to footer

Destroying Angularjs $http.get Cache

I can't figure out how to destroy my cache to get a new list from my server. When I get the first list, it's work perfect, but after inserting informations to my database and sendi

Solution 1:

I really don't see anything wrong, but in any case you can add unique param for your request to prevent caching like

$http.get(serviceBase + 'api/cidades/getall?unique=' + new Date().getTime())

Post a Comment for "Destroying Angularjs $http.get Cache"