I am working in a legacy website built in Angular version 1.5 and I must find out how to refresh the cache without refreshing the browser after clicking on a button , controlled in ng-controllers.js file.
Perhaps I couldn't tell if it worked or not behind the scenes, how can I actually see if it is working?
$state.go('types', {}, {
url: '/submit/*',
reload : true,
cache: false,
});
I went ahead and started trying find solutions on Stackoverflow.
I also tried using httpDefaultCache, How to refresh / invalidate $resource cache in AngularJS
How to remove cache of browser using AngularJS code?
How can I actually see if it the code works, after clicking POST submit button?