SDI with Sling Exporter | Community
Skip to main content
swapnilg7731718
Level 2
March 22, 2021
Solved

SDI with Sling Exporter

  • March 22, 2021
  • 2 replies
  • 2357 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by davidjgonzalezzzz

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).

 

2 replies

Umesh_Thakur
Community Advisor
Community Advisor
March 22, 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

swapnilg7731718
Level 2
March 22, 2021
@umesh_thakur : Does SDI work with json output rather than html also. I have sdi kind of requirement but with json as response rather than html
davidjgonzalezzzzAdobe EmployeeAccepted solution
Adobe Employee
March 22, 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).

 

swapnilg7731718
Level 2
March 22, 2021
@davidjgonzalezzzz : your correct , that's exactly my requirement. Any other way to achieve this ?
New Member
March 5, 2023

@swapnilg7731718  I have similar requirement, wondering if you can tell me about the solution you approached.

 

Thanks in advance.

 

Jaydeep.