Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Adobe Granite HTML Library Manager

Avatar

Avatar
Validate 1
Level 1
yevhenii_d
Level 1

Likes

0 likes

Total Posts

8 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Affirm 1
View profile

Avatar
Validate 1
Level 1
yevhenii_d
Level 1

Likes

0 likes

Total Posts

8 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Affirm 1
View profile
yevhenii_d
Level 1

22-08-2019

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

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Give back 300
MVP
Gaurav-Behl
MVP

Likes

243 likes

Total Posts

1,145 posts

Correct Reply

281 solutions
Top badges earned
Give back 300
Give Back 50
Give Back 5
Give Back 3
Give Back 25
View profile

Avatar
Give back 300
MVP
Gaurav-Behl
MVP

Likes

243 likes

Total Posts

1,145 posts

Correct Reply

281 solutions
Top badges earned
Give back 300
Give Back 50
Give Back 5
Give Back 3
Give Back 25
View profile
Gaurav-Behl
MVP

22-08-2019

Check if Versioned ClientLibs helps for your use case

Answers (2)

Answers (2)

Avatar

Avatar
Coach
Employee
Jörg_Hoh
Employee

Likes

1,086 likes

Total Posts

3,121 posts

Correct Reply

1,063 solutions
Top badges earned
Coach
Give back 600
Ignite 5
Ignite 3
Ignite 1
View profile

Avatar
Coach
Employee
Jörg_Hoh
Employee

Likes

1,086 likes

Total Posts

3,121 posts

Correct Reply

1,063 solutions
Top badges earned
Coach
Give back 600
Ignite 5
Ignite 3
Ignite 1
View profile
Jörg_Hoh
Employee

23-08-2019

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

Avatar

Avatar
Validate 1
Level 1
yevhenii_d
Level 1

Likes

0 likes

Total Posts

8 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Affirm 1
View profile

Avatar
Validate 1
Level 1
yevhenii_d
Level 1

Likes

0 likes

Total Posts

8 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Affirm 1
View profile
yevhenii_d
Level 1

23-08-2019

It's not exactly what I need