Dispatcher cache - SPA pages | Community
Skip to main content
Anudeep_Garnepudi
Community Advisor
Community Advisor
December 17, 2020

Dispatcher cache - SPA pages

  • December 17, 2020
  • 1 reply
  • 935 views

How much Dispatcher can help in caching the SPA page?

  1. I have a non SPA page built with Core components
  2. Similar SPA page with same set of components

In case 1, Dispatcher will cache entire HTML(with content) of page.

How dispatcher works in case 2?

In this scenario which page will perform better?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

Kunal_Gaba_
December 18, 2020

In case2, the SPA page itself will not contain any content in the source as it just includes basic skeleton page markup only. All other components on the page are rendered by the JavaScript code. The JS code makes calls to JSON endpoints in AEM to fetch the data of the components included on the page. 

So it is recommended you cache those JSONs along with the SPA pages markup.