Caching of the segments resolved using Context Hub in AEM 6.2 (or upwards) | Community
Skip to main content
Level 3
Oct 4, 2017 6:28 AM UTC
Solved

Caching of the segments resolved using Context Hub in AEM 6.2 (or upwards)

Dear AEM Community members,

I am attempting to use context hub to resolve a few segments based on query parameters in the URL. The approach is as below:

  1. Create a few segments that produce that will read query parameters in URL and accordingly form a resolution
  2. Created few variations of the teasers that will be shown based on segment resolution.

My Query here is majorly around the caching of content in the above setup: Will the content to be shown based on resolved segments be cached all at once and shown/hidden on basis of segment resolution?

Thanks for your response in advance!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
kautuk_sahni
kautuk_sahniAccepted solution
Employee
Nov 3, 2017 10:32 AM UTC

Target is all client-side +  Cloud, it has nothing is done on server-side (AEM). AEM only delivers all the javascript file for Target, and the segment resolution is executed on the target servers. Target does a call like /_jcr_content/component.html these are cached in the dispatcher.

Kautuk Sahni

4 replies

kautuk_sahni
kautuk_sahniAccepted solution
Employee
Nov 3, 2017 10:32 AM UTC

Target is all client-side +  Cloud, it has nothing is done on server-side (AEM). AEM only delivers all the javascript file for Target, and the segment resolution is executed on the target servers. Target does a call like /_jcr_content/component.html these are cached in the dispatcher.

Translate
Kautuk Sahni
Level 3
Nov 3, 2017 9:58 AM UTC

kautuksahni​ - possible to share some pointers on my above query?

Translate
Level 3
Oct 5, 2017 5:26 AM UTC

So if we take away the query parameters from the original question, then does it imply that caching happens only on basis of resolved segments ? Or is it any different for that scenario?​

Thanks,

Hemant

Translate
kautuk_sahni
Employee
Oct 4, 2017 10:10 AM UTC

It would be on the basis of segment resolution every time. When we say query parameter each call is considered as the dynamic call. Caching is valid for static content only.

Extra Relevant article:- Technical Knowledge Sharing Stuff: Query Parameter caching on Dispatcher and Caching pages with query

~kautuk

Translate
Kautuk Sahni