Dispatcher is always caching SDI component | Community
Skip to main content
Level 2
April 1, 2024
Solved

Dispatcher is always caching SDI component

  • April 1, 2024
  • 3 replies
  • 791 views

Hi,

 

I have developed a SDI component that I don´t want to be cached. I already implemented the osgi configuration, the dependencies in the pom and the dispatcher configuration in the vhost file, and my componente is already rendered using sdi feature.

 

The problem is that the component is always stored in cache. I tried a few cache rules such as:

 

 But it is gettin cached anyways. I´m in AEM as a cloud service. It is maybe the cdn caching this component? I need to use ESI intead of SSI?

 

I will appreciate any kind of help!

 

Thank you all

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 somen-sarkar

Hi @user5741 ,

Looks like you are using suffix for the SDI Component. SDI component is incompatible with following scenario :-

  • components which handle POST requests or GET parameters (query strings),
  • synthetic components which use suffixes (because suffix is used to pass requestType of the synthetic resource).

Ref :- https://sling.apache.org/documentation/bundles/dynamic-includes.html#compatibility-with-components

 

Hope this will help.

Thanks,

Somen

3 replies

somen-sarkar
Community Advisor
somen-sarkarCommunity AdvisorAccepted solution
Community Advisor
April 1, 2024

Hi @user5741 ,

Looks like you are using suffix for the SDI Component. SDI component is incompatible with following scenario :-

  • components which handle POST requests or GET parameters (query strings),
  • synthetic components which use suffixes (because suffix is used to pass requestType of the synthetic resource).

Ref :- https://sling.apache.org/documentation/bundles/dynamic-includes.html#compatibility-with-components

 

Hope this will help.

Thanks,

Somen

arunpatidar
Community Advisor
Community Advisor
April 1, 2024

Hi @user5741 
Please add your rules at the end.

 

Arun Patidar
arunpatidar
Community Advisor
Community Advisor
April 8, 2024

Hi @user5741 

Were the user suggestions helpful? Let us know if more details are needed or mark the answer as correct. If you found a solution independently, please share it with the community.

Arun Patidar