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

Caching Header and Footer without SDI implementation

Avatar

Avatar
Validate 25
Level 5
snbaem
Level 5

Likes

84 likes

Total Posts

206 posts

Correct Reply

26 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Contributor 2
Ignite 5
View profile

Avatar
Validate 25
Level 5
snbaem
Level 5

Likes

84 likes

Total Posts

206 posts

Correct Reply

26 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Contributor 2
Ignite 5
View profile
snbaem
Level 5

17-07-2020

Hello All,

 

I am trying to see if it is possible to cache the header and footer in dispatcher so that when any page is called for the first time, at least the header and footer is used from the dispatcher cache created from first page that was hit on the site.

I found that if we do <sly data-sly-resource="/content/project/en/home/jcr:content/siteheader/header.html"></sly> and implement SDI, we can see a cached file in dispatcher such as header.cache.html.

 

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/sling-dynamic-include-disp... and https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/ssi-for-header-footer-in-a... seem to be talking about same where SDI implementation is used.

 

My query is that can we still achieve separate node based caching without SDI implementation? 

Or

Can we still achieve separate node based caching with SDI implementation, but no SSI implementation? Meaning if page is cached in Akamai for eg it will never hit the dispatcher to get the separate cached call, unless the Akamai cache is cleared. 
It seems its not since the whole page.html will be cached and dispatcher won't know to cache the desired node.html into its doc root.

 

We are using AEM 6.4

AEM 6.4 Dispatcher SDI

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Establish
MVP
Nupur_Jain
MVP

Likes

165 likes

Total Posts

186 posts

Correct Reply

76 solutions
Top badges earned
Establish
Ignite 1
Give Back 5
Give Back 3
Give Back 25
View profile

Avatar
Establish
MVP
Nupur_Jain
MVP

Likes

165 likes

Total Posts

186 posts

Correct Reply

76 solutions
Top badges earned
Establish
Ignite 1
Give Back 5
Give Back 3
Give Back 25
View profile
Nupur_Jain
MVP

17-07-2020

Hi @snbaem 

 

For your case, you can use SDI with "JSI" include type. JSI means it is javascript based sling dynamic include. It will make a call to required header/footer html from clientside means neither akamai not dispatcher has to  resolve these includes.

Both Header/Footer node request HTML can then be cached on akamai/dispatcher.

 

Read more from https://docs.adobe.com/content/help/en/experience-manager-learn/foundation/development/set-up-sling-.... There is OSGI property that needs to be set to JSI

include-filter.config.include-type="JSI"

Refer https://www.aemquickstart.in/2016/12/sling-dynamic-include.html article to know how javascript based SDI works.

 

Hope it helps!

Thanks!

Nupur

Answers (0)