Angular Versioning and Production Build Caching Issue

1,103 views
Skip to first unread message

Neha Yargal

unread,
Apr 26, 2021, 4:22:06 PM4/26/21
to ang...@googlegroups.com
Hi,

I need some help with Angular Versioning. How to resolve Production Build Caching Issue?

When we deploy new codes, most of the new features work fine but not for some changes. For example, if the front-end developers update the service connection and deploy it, users have to open incognito windows or clear cache to see the new feature or need to do a hard refresh.

Thank you in advance.

Regards,
Neha Yargal

khushbu poddar

unread,
Apr 30, 2021, 3:26:05 AM4/30/21
to ang...@googlegroups.com, neha....@gmail.com
Hi,

Make sure you have enabled hashing in production build configuration,
In angular.json file,

build.configurations.production.outputHashing: 'all'

Also, refer this article -  https://blog.nodeswat.com/automagic-reload-for-clients-after-deploy-with-angular-4-8440c9fdd96c

Hope this helps.

Regards,
Khushbu Poddar

--
You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to angular+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/angular/CACCTogcbguZQNf25etmY9fO%2BVozvLCqWcv94iDgum_aU-JZLpw%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages