We have tried the versioned clientlibs provided by ACS AEM Commons, it is working as per documentation. We are getting the hashcoded JS/CSS files generated post every deployment (if there are changes related to JS/CSS)
All the pages[.html] which are not cached are picking the latest hash coded js/css files.
It’s not picking the latest hash coded js/css files for the pages[.html] which are cached in dispatcher.
Let’s consider three pages
Home page (Cached in Dispatcher)
Search (Not Cached in Dispatcher)
About us (Not Cached in Dispatcher)
Whenever there is a deployment all the three pages has to pick the latest hash coded JS/CSS files without clearing the dispatcher cache.
But in our case post every deployment, when there is a request for home page, it is picking the cached html file (which has reference to old hash coded JS file), since we are caching the home page[.html].
Options we tried are,
If we delete the old cached JS/CSS file, then the cached HTML pages are throwing 404 error. (To resolve this we need to clear the cached html files also)
It is working fine for the pages that are not cached [.html]