How to prevent Browser cache on Angular 2 site?
We're currently working on a new project with regular updates that's being used daily by one of our clients. This project is being developed using angular 2 and we're facing cache issues, that is our clients are not seeing the latest changes on their machines. Mainly the html/css files for the js files seem to get updated properly without giving much trouble. angular-cli resolves this brilliantly by providing an --output-hashing flag for the build command. Example usage: ng build --aot --output-hashing=all Bundling & Tree-Shaking provides some details and context. Running ng help build ,