lundi 9 mars 2020

Using Service Workers to cache "other" SPA pages

My current project utilizes a micro-SPA architecture, where various business flows are all isolated to independent SPAs which are all hosted on the same domain.

Would it be possible for me to utilize a Service Worker to request and cache the pages/assets of all of the SPAs in our architecture when any one of the flows is requested/loaded for the first time? My thinking is that first time visitors to any of the SPAs, would see performance benefits when navigating to other flows, since the assets of all of the SPAs in our architecture were being cached behind the scenes during the first visit to a single SPA.

Does this approach sound feasible? Could this approach actually lead to improved SPA load times?




Aucun commentaire:

Enregistrer un commentaire