I configured SDI of javascript type using https://experienceleague.adobe.com/docs/experience-manager-learn/foundation/development/set-up-sling...
When I access the page, the code of that component is written as:
<script type="text/javascript">
jQuery.get("\/content\/global/en/about-us/news/_jcr_content/root/responsivegrid/news.nocache.html/sample/components/content/news.htmll",
function(data) {
jQuery("#dynamic_include_filter_div_1000").replaceWith(data);
});
</script>
.nocache.html/resource type/pagename
resource type is sample/components/content
I don't know why the resource type is appended with .nocache.Html.
Has anyone faced this issue previously?
Solved! Go to Solution.
Views
Replies
Total Likes
Hi @Dillibabu77 ,
You are seeing the resource type is appended with .nocache.html because you have configured Filter Selector = nocache.
Along with the SDI configuration, we also need to do the following configuration on the dispatcher's side.
<IfModule dispatcher_module>
SetHandler dispatcher-handler
</IfModule>
SetOutputFilter INCLUDES
<Directory />
Options FollowSymLinks Includes
AllowOverride None
</Directory>
/disable-nocache
{
/glob "*.nocache.html*"
/type "deny"
}
Sling Dynamic Include Github Reference - https://github.com/wttech/Sling-Dynamic-Include
Hope this could help you !!!
Thanks
Shiv
SDI appends nocahe.html which is identified at dispatcher level to avoid caching the HTML. Below is the rule added at dispatcher level.
{ /glob "*.nocache.html*" /type "deny" }
Hi @Dillibabu77 ,
You are seeing the resource type is appended with .nocache.html because you have configured Filter Selector = nocache.
Along with the SDI configuration, we also need to do the following configuration on the dispatcher's side.
<IfModule dispatcher_module>
SetHandler dispatcher-handler
</IfModule>
SetOutputFilter INCLUDES
<Directory />
Options FollowSymLinks Includes
AllowOverride None
</Directory>
/disable-nocache
{
/glob "*.nocache.html*"
/type "deny"
}
Sling Dynamic Include Github Reference - https://github.com/wttech/Sling-Dynamic-Include
Hope this could help you !!!
Thanks
Shiv
I have done this configuration already.Before SP13, url was .nocache.html .
After s913, url changed to /resource type/.
Views
Replies
Total Likes
Hi @Dillibabu77
We also noticed the same issue with SDI while upgrading to SP15. This happened only for Experience Fragment because it seems to be treating XF as a synthetic resource after the upgrade.
Were you able to fix this issue? Is there any way to letting SDI know to not append resource type in the URL?
Regards,
Arpit Varshney
Views
Replies
Total Likes
hi @Dillibabu77
experienceleague.adobe.com/docs/experience-manager-learn/foundation/development/set-up-sling-dynamic-include.html?lang=en
Please go through the video available on the above page for detailed setup /configuration for SDI setup/management/
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies