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

SDI with Sling Exporter

Avatar

Avatar
Validate 1
Level 2
swapnilg7731718
Level 2

Likes

0 likes

Total Posts

17 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Give Back 5
Give Back 3
Give Back
View profile

Avatar
Validate 1
Level 2
swapnilg7731718
Level 2

Likes

0 likes

Total Posts

17 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Give Back 5
Give Back 3
Give Back
View profile
swapnilg7731718
Level 2

22-03-2021

hi Team,

 

I need to implement SDI like feature with Sling exporter. My page has many component which is mapped to corresponding model exporter. But need some component to avoid caching  at dispatcher side.

 

Just expecting something like include statement getting generated in dispatcher cache with trigger another request within the cache page json.

 

Any pointer would be appreciated , thanks in advance.

 

Regards,

Swapnil Gupta

SDI Sling exporter

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Ignite 3
Level 5
davidjgonzalezzzz
Level 5

Likes

69 likes

Total Posts

77 posts

Correct Reply

31 solutions
Top badges earned
Ignite 3
Affirm 25
Ignite 1
Give Back 5
Give Back 3
View profile

Avatar
Ignite 3
Level 5
davidjgonzalezzzz
Level 5

Likes

69 likes

Total Posts

77 posts

Correct Reply

31 solutions
Top badges earned
Ignite 3
Affirm 25
Ignite 1
Give Back 5
Give Back 3
View profile
davidjgonzalezzzz
Level 5

22-03-2021

SDI expects the output to be HTML.

Sling Model Exporter implies the output is JSON.

 

What exactly are you trying to do? Are you trying to stitch together a JSON response, where parts are static and other parts dynamic?

 

If that's the case SDI doesn't support this - and TBH, I'm not sure if Apache webserver even has the ability to do SSI in JSON (im not sure what that syntax would look like).

 

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

22-03-2021

So why are you not going with the SDI way. this can be implemented in SDI with nocache or TTL based on your caching requirement.

You just need to put SDI config for a single or multiple component in publish runmode apart from basic SDI configuration. 

 

If you are looking for something else please explain.

 

Umesh Thakur