내 커뮤니티 업적 표시줄을 확대합니다.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.

해결됨

Adobe Granite HTML Library Manager

Avatar

Level 2
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
1 채택된 해결책 개

Avatar

정확한 답변 작성자:
Level 10
3 답변 개

Avatar

정확한 답변 작성자:
Level 10

Check if Versioned ClientLibs helps for your use case

Avatar

Level 2

It's not exactly what I need

Avatar

Employee Advisor

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