Expand my Community achievements bar.

SDI not working in AEM as a Cloud Service

Avatar

Level 3

Hi All,

 

The SDI was working fine in 6.5. But after migrating same project to AEM as a cloud the SDI is not working.

I could see the SDI include after inspecting.

<!-- SDI include (path: /home/_jcr_content/root/header.nocache.html/project/components/structure/header, resourceType: project/components/structure/header) -->

But it is giving cached content in response.

Ideally, it should fetch dynamic content from the publish and serve it.

I am adding SDI for multiple components, none of them is working. 

SDI version : 3.1.2

I tried adding all the configurations as mentioned in below ticket :

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/lack-of-ssi-in-aemaacs-dis...

 

Thanks in Advance

 

@arunpatidar 

7 Replies

Avatar

Level 3

Hi Arun,

I have added deny rule as well. And followed this documentation and added all the configurations. https://experienceleague.adobe.com/docs/experience-manager-learn/foundation/development/set-up-sling...

 

/rules {
  ...
  /0009 {
    /glob "*.nocache.html*"
    /type "deny"
  }
}

 Thanks,

Nasrin

Avatar

Community Advisor

Can you also share how does the SDI cache file path looks like?



Arun Patidar

Avatar

Level 2

HI Arun,

 

I am also facing similar issue. 

I have implemented SDI for header and footer which are experience fragments. After publishing the changes, we cannot see the changes immedietly on the site. We see the changes on some pages but not on some. It is serving the cached content for some

 

We are using fastly as our CDN and once we clear the cache for that page changes do reflect. We got the sitewide cache cleared as well but that did not help either.

 

Here is what the include looks like

 

ssinghai_0-1688622260083.png

We also have added the similar rule to deny the caching.

 

And here is what the cached path would look like if cached - 

 

/mnt/var/www/html/content/experience-fragments/tmh/us/en/site/header/master/_jcr_content/root.nocache.html

 

Thanks

 

Avatar

Community Advisor

Then it is a CDN cache issue because Apache build a html response including SDI fragment and page and that cache to the CDN. you have to clear CDN cache manually/automatically if there are any changes on fragment.



Arun Patidar

Avatar

Level 2

I´m facing same issue. Has anyone found a solution? could maybe use ESI intead SSI be the answer?

 

@nasrinj114 @arunpatidar 

Avatar

Level 3

Somehow we couldn't resolve the issue. We stopped caching of the content since we needed dynamic content on the website for the users.