Issue with Icons Not Updating After Deployment with CDN and Client-Library Versioning
Hello, Adobe community,
I am encountering an issue with the icons on my website related to deployments with a CDN (Content Delivery Network) and client-library versioning. I would appreciate any insights or suggestions to resolve this problem.
Problem Description:
Every time we perform a deployment to the environment with a CDN attached to it, and there are new icons added to the front-end code, it appears that the website continues to display the old iconfont.woff2 file instead of updating to the latest version which ends up changing the icons of the website. The versioning for the client libraries is handled from the front-end module and the iconfont.woff2 file is inserted accordingly.
Just FYI, we're using React SPA with AEM.
Resolution Attempted:
We have tried flushing the cache from both the dispatcher and the CDN, which does temporarily resolve the issue. However, it is not an ideal solution as it requires manual intervention after each deployment.
Seeking Best Practice:
I am seeking advice on the best practice to handle this situation effectively. Should we consider flushing all the client libraries every time we make a deployment, or could there be another factor related to versioning that might be preventing the update of the latest client libraries after deployment?
Any guidance on the matter would be highly appreciated. Thank you for your time and assistance!