Best Practices for Invalidating Icon-font Files in AEM 6.5.15 to Avoid Serving Stale Data
In our project, we're using Adobe Experience Manager (AEM) version 6.5.15 with its new UI.frontend module structure. The versioning of the client library is managed by this front-end module, which embeds a versioned icon-font file. Our project is built as a React Single Page Application (SPA).
We're encountering an issue where every time we introduce a new icon and the project is compiled, a new version of the client library and the icon-font file is created and embedded. However, when we activate any page from the authoring environment, the client libraries are updated, but the icon-font file seems to serve stale data, continuing to display the old icons.
What is the best practice to prevent this stale data issue? Should we be flushing the /etc.clientlibs directory with each deployment, or is there another more efficient or effective approach?