Within my current project, I am utilizing angular's $routeProvider
to dynamically load pages into an ng-view section. The loaded pages are displaying correctly in the ng-view and are being cached for quick access without needing to make a new server request.
The dilemma arises when certain pages contain forms with initial values fetched from the server. After making changes to these values and submitting them via Ajax post, returning to the page results in seeing the original values instead of the updated ones.
How can I specifically remove this page from the cache after the form is submitted so that the entire page is refreshed from the server?
Are there any alternate solutions to address this complication?
Appreciate any advice on this matter!