There are several solutions that you might consider
- Here is a similar answer to your question:
AngularJS disables partial caching on dev machine
To quote the accepted answer to this post:
"here is one way to always automatically clear the cache whenever ng-view content changes"
myApp.run(function($rootScope, $templateCache) { $rootScope.$on('$viewContentLoaded', function() { $templateCache.removeAll(); }); });
- A solution without angular can also be found here:
Force browser to clear cache
To quote the best answer to this post (Fermin's answer):
If one of the ways to view css or js changes is to add _versionNo to the css / js file for each version. For example.
script_1.0.css script_1.1.css script_1.2.css etc.
You can check this link to find out how it can work.
I hope this helps.
EDIT. To answer your comment, I am sorry that this did not work.
Perhaps you could try to implement a web descriptor approach similar to Trello, during which after a while you ask the user to refresh his page to receive new updates on the system or to update if their socket connection time has been disabled? Depending on your installation, you may find this tutorial useful: http://www.html5rocks.com/en/tutorials/frameworks/angular-websockets/
David swindells
source share