In my project I am using angular $routeProvider in order to dynamically load pages in a ng-view area. The pages are getting loaded correctly in the ng-view and they are also cached so that the next time they are loaded instantly without performing a request to the server.
The thing is that there are some pages where I have a form with initial values loaded from the server. I change those values and submit them back to server with an Ajax post.
When I change the ng-view with another page and change it back to the form page, I don't see the updated values but I see the old ones.
How can I remove this specific page from the cache after the form is submitted so the whole page is requested again from the server?
Is there another workaround this issue?
Thank you!