Hello. How to disable caching of the controller.js file in Angular?
1 answer
Angular does not know how to cache JS code, it is cached by the browser. In Chrome and similar browsers, it is easy to disable caching by opening Инструменты разработчика (F12) and opening Settings (F1) and selecting the Disable cache (while DevTools is open) option Disable cache (while DevTools is open) . The file cache will automatically reset when the page is reloaded.
|