Adobe Granite HTML Library Manager | Community
Skip to main content
yevhenii_d
Level 2
Aug 22, 2019 1:55 PM UTC
Solved

Adobe Granite HTML Library Manager

Hi everyone!
There is a feature "htmllibmanager.longcache.patterns" of com.adobe.granite.ui.clientlibs.impl.HtmlLibraryManagerImpl that allows to mark the clientlib call, but unfortunately it generates stamp only when the service restarts. E.g., with service configuration, I see at the output markup /etc.clientlibs/foo/bar.123.js where 123 is unique value, that generates on service restart.
Basically, clientlib is included through sightly template "/libs/granite/sightly/templates/clientlib.html".
Finally, I want to have new stamp on every UI-related code deploy, to prevent using of alredy cached by browser js or css.
Currently, I have a solution: "${maven.build.timestamp}" but it requires direct path include of the clientlib, that doesn't suit to us, because we are migrating to AEM 6.5 and all clientlibs were moved to /apps structure.
I would be grateful, if you share your own experience, how this objective can be reached.
Thanks
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Gaurav-Behl
Gaurav-BehlAccepted solution
Level 10
Aug 22, 2019 6:32 PM UTC

Check if Versioned ClientLibs helps for your use case

3 replies

joerghoh
Employee
Aug 23, 2019 3:23 PM UTC

What is your need then? I never seen this parameter used.

Translate
yevhenii_d
Level 2
Aug 23, 2019 8:30 AM UTC

It's not exactly what I need

Translate
Gaurav-Behl
Gaurav-BehlAccepted solution
Level 10
Aug 22, 2019 6:32 PM UTC

Check if Versioned ClientLibs helps for your use case

Translate