Finning is the world's largest Caterpillar dealer delivering unrivalled service which has it's own digital experience for customers to find specific parts and machines. Their website https://www.finning.com purpose is to help customers find old/new machines and old/new parts.
One of their challenges is the header navigation. The header navigation outputs old/new machines and old/new parts that are rendered from a 3rd party API. This 3rd party API is managed by the product managers and has a pretty large set of data. When there is a change in the 3rd party API, we must flush the entire cache of the website. This mechanism wasn't too great for the end users as a full cache of the entire website causes the digital experience of customers to be hindered by the website performance issue; forcing pages to refetch and again save the cache. This gave us an opportunity to enhance the experience, Using Sling Dynamic Include and Experience Fragments to solve the issue. Sling Dynamic Include or SDI makes it possible to cache a page with placeholder content (include) for dynamic data that will be replaced with actual content when a user accesses the page. Due to this, the majority of page components can be cached in caching layers, and dynamic data is replaced when a page is accessed.
4. SDI completed configuration, so when a page is being published, the entire path of /content/experience-fragments/my-company/structure/header/en.html is being cached. When we re-activate of flush only /content/experience-fragments/my-company/structure/header/en.html, just this content will be cacheflushed. Updating the Header Component
5. The header's "active" state has been migrated to use CSS and JS, instead of using server rendering.