Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Angular - Changes are not shown in production until customer refresh the page or cleaning cache

Every time Im deploying the angular app for production Im concern if customer will see new features added since some customers have reported that they are not seeing changes made until they refresh the page or when cleaning cache.

What would be the best option in order to solve this? (Angular 8+)

This is the command that Im using to deploy the app: ng build --base-href=./ --sourceMap=false

like image 381
Samuel Elias Bustillo Agüero Avatar asked Dec 06 '25 04:12

Samuel Elias Bustillo Agüero


1 Answers

pls try ng build --prod --aot --base-href=./ --outputHashing=all

for more pls refer Angular app has to clear cache after new deployment

like image 61
Edison Avatar answered Dec 08 '25 18:12

Edison



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!