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

Sling dynamic include (SDI) drawback

Avatar

Avatar
Affirm 1
Level 3
manikanthar1295
Level 3

Likes

7 likes

Total Posts

82 posts

Correct Reply

1 solution
Top badges earned
Affirm 1
Validate 25
Give Back 10
Give Back 5
Give Back 3
View profile

Avatar
Affirm 1
Level 3
manikanthar1295
Level 3

Likes

7 likes

Total Posts

82 posts

Correct Reply

1 solution
Top badges earned
Affirm 1
Validate 25
Give Back 10
Give Back 5
Give Back 3
View profile
manikanthar1295
Level 3

06-06-2021

Hi,

 

I have two components in my page and remaining  all are static content now i need to cache that page i thought of using Sling dynamic include  but some people are suggesting like there is some drawback of Sling Dynamic include (SDI) but i am not getting what is main drawback of using SDI.

If any one know what would be main drawback of using SDI.

Please share.

 

Regards

Manikantha R

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 25
MVP
Singaiah_Chintalapudi
MVP

Likes

131 likes

Total Posts

234 posts

Correct Reply

39 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Ignite 5
Ignite 3
View profile

Avatar
Validate 25
MVP
Singaiah_Chintalapudi
MVP

Likes

131 likes

Total Posts

234 posts

Correct Reply

39 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Ignite 5
Ignite 3
View profile
Singaiah_Chintalapudi
MVP

06-06-2021

Sometimes it does not work as it suppose to. Instead of caching/excluding configured components, it just returns the entire page.

 

Lets say you configured a component with specific TTL then the expected behavior should be: SDI should intercept the request and send the configured component headers to dispatcher so dispatcher caches this configured component separately from the page. But this does not work intermittently. 

 

I would recommend to develop your own custom solution rather than using SDI.

 

Thanks,

Singaiah

Answers (1)

Answers (1)

Avatar

Avatar
Validate 1
MVP
Umesh_Thakur
MVP

Likes

147 likes

Total Posts

157 posts

Correct Reply

53 solutions
Top badges earned
Validate 1
Applaud 25
Ignite 3
Ignite 1
Give Back 5
View profile

Avatar
Validate 1
MVP
Umesh_Thakur
MVP

Likes

147 likes

Total Posts

157 posts

Correct Reply

53 solutions
Top badges earned
Validate 1
Applaud 25
Ignite 3
Ignite 1
Give Back 5
View profile
Umesh_Thakur
MVP

06-06-2021

Hi @manikanthar1295 ,

I faced some issue with the SDI those are:

1. Problem with the CDN cache and Edge Side include: It will not work as expected in some scenario, so make it work you will have to do some extra config or set TTL for a fragment of the page, that was included as part of SDI.

2. SDI used add some CSS ultimately that will have some impact on the existing site's css and look and feel of the page.

3. I only used it with apache asi that worked as expected in all scenarios.

 

Hope this will help.

Umesh Thakur