Caching Experience Fragments
Published
config.publish / org.apache.sling.dynamicinclude.Configuration~aem-demo-xf.cfg.json
{
"include-filter.config.enabled": true,
"include-filter.config.appendSuffix": true,
"include-filter.config.add_comment": true,
"include-filter.config.disableIgnoreUrlParams": false,
"include-filter.config.extension": "html",
"include-filter.config.ignoreUrlParams": [""],
"include-filter.config.include-type": "SSI",
"include-filter.config.resource-types": [
"aem-demo/components/xfpage"
],
"include-filter.config.rewrite": false,
"include-filter.config.path": "/content/experience-fragments/aem-demo",
"include-filter.config.selector": "xf",
"include-filter.config.required_header": "Server-Agent=Communique-Dispatcher",
"include-filter.config.ttl": ""
}
/content/experience-fragments/aem-demo
is included in the dispatcher cache. With this setup, any changes published in XF will automatically update the pages, ensuring end users see the latest content without additional hiccup from the author.