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 - Long term client side cache key

Avatar

Avatar
Validate 1
Level 1
maximen66097493
Level 1

Likes

3 likes

Total Posts

4 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
View profile

Avatar
Validate 1
Level 1
maximen66097493
Level 1

Likes

3 likes

Total Posts

4 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
View profile
maximen66097493
Level 1

08-06-2017

Hi,

I try to find the documentation related to the Adobe Granite HTML Library Manager OSGI Configuration for the following parameters:

- Long term client side cache key

- Long term cache key format

This seems to be related to the ACS commons feature Versioned ClientLibs  but when looking on the documentation or on internet i can't find any explanation on those parameters.

Best regards,

Maxime Nougarede

DigitasLbi

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 10
Level 6
leeasling
Level 6

Likes

73 likes

Total Posts

292 posts

Correct Reply

75 solutions
Top badges earned
Validate 10
Validate 1
Boost 50
Boost 5
Boost 3
View profile

Avatar
Validate 10
Level 6
leeasling
Level 6

Likes

73 likes

Total Posts

292 posts

Correct Reply

75 solutions
Top badges earned
Validate 10
Validate 1
Boost 50
Boost 5
Boost 3
View profile
leeasling
Level 6

08-06-2017

It's part of the Apache Configuration.  Documentation is here Versioned ClientLibs

Apache Configuration

To configure Apache to send the right header to set a long TTL:

SetEnvIf Request_URI "(\.min)?\.[a-f0-9]+\.js" long_expires=true 
SetEnvIf Request_URI "(\.min)?\.[a-f0-9]+\.css" long_expires=true
Header set Cache-Control max-age=2592000 env=long_expires

Answers (3)

Answers (3)

Avatar

Avatar
Validate 1
Level 2
shivanig3560060
Level 2

Likes

12 likes

Total Posts

11 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile

Avatar
Validate 1
Level 2
shivanig3560060
Level 2

Likes

12 likes

Total Posts

11 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile
shivanig3560060
Level 2

21-06-2017

The answer is not satisfactory.Versioned clientlibs is an additional  thing .How these configurations work on AEM only?

Avatar

Avatar
Give Back 50
Employee
Feike_Visser1
Employee

Likes

247 likes

Total Posts

970 posts

Correct Reply

221 solutions
Top badges earned
Give Back 50
Give Back 5
Give Back 3
Give Back 25
Give Back 10
View profile

Avatar
Give Back 50
Employee
Feike_Visser1
Employee

Likes

247 likes

Total Posts

970 posts

Correct Reply

221 solutions
Top badges earned
Give Back 50
Give Back 5
Give Back 3
Give Back 25
Give Back 10
View profile
Feike_Visser1
Employee

08-06-2017

This needs to be configured on the webserver like Apache. You can use mod_header for this.

Avatar

Avatar
Validate 1
Level 1
maximen66097493
Level 1

Likes

3 likes

Total Posts

4 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
View profile

Avatar
Validate 1
Level 1
maximen66097493
Level 1

Likes

3 likes

Total Posts

4 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
View profile
maximen66097493
Level 1

09-06-2017

Hi and thanks for your answer,

What i'm looking for is how to make those parameters works on the OSGI Configuration to be ableto generate my CSS and JS with a cache key.

the Apache configuration for the TTL will be done a second time once i achieved the first part.

If they backport the ACS Common feature for Versioned ClientLibs into AEM there must be a documentation somewhere.

Using a 6.2 Instance with the configuration below and after restarting the instance my CSS/JS doesn't have any cache key.

osgi-html-library-manager-conf.PNG