Suppose say I have a page /content/example/xyz.html and I have configured a vanity URL i.e, /abc. My question is when a user hits /abc, will this be served from dispatcher cache or will it be served from publisher every time?
Solved! Go to Solution.
Views
Replies
Total Likes
The answer depends on how you want to handle it, but if your question is if it's possible to cache vanity pages, where vanity is configured on AEM page property, the answer is yes, you can cache it on the dispatcher.
My approach would be:
The downside will be with cache flush, as the dispatcher cache flush agent will flush the actual page path only and not vanity. You can do vanity configuration on dispatcher [1].
I suggest you also check ACS commons Redirect Manager [2] to handle vanity.
If possible, i recommend to handle vanity via Apache rewrites (301 or PASS Through)
Thanks
Mohit
[2] https://adobe-consulting-services.github.io/acs-aem-commons/features/redirect-manager/index.html
The answer depends on how you want to handle it, but if your question is if it's possible to cache vanity pages, where vanity is configured on AEM page property, the answer is yes, you can cache it on the dispatcher.
My approach would be:
The downside will be with cache flush, as the dispatcher cache flush agent will flush the actual page path only and not vanity. You can do vanity configuration on dispatcher [1].
I suggest you also check ACS commons Redirect Manager [2] to handle vanity.
If possible, i recommend to handle vanity via Apache rewrites (301 or PASS Through)
Thanks
Mohit
[2] https://adobe-consulting-services.github.io/acs-aem-commons/features/redirect-manager/index.html
Thanks Mohit for the response. i understood your approach on how to cache the page for vanity URLs. However, do you have any recommendation on how to flush this cache on invalidation?
Views
Replies
Total Likes
@JeevanRaj You can leverage vanity url configuration of dispatcher [1]
AEM provides a URI that returns list of vanity configured in AEM
/libs/granite/dispatcher/content/vanityUrls.html
Dispatchers use this URI to manage cache
/vanity_urls { /url "/libs/granite/dispatcher/content/vanityUrls.html" /file "/tmp/vanity_urls" /delay 300 }
Views
Replies
Total Likes
Hi,
There is a way to do it https://www.nextrow.com/blog/adobe-experience-manager/vanity-urls-in-aem-part-2
Hi @arunpatidar ,
Thanks for sharing the article. But i was looking for how to cache the vanity pages. The current OOTB behaviour is such that the pages requested through vanity urls are always served from publisher.
Views
Replies
Total Likes