PWA cache for xml based frameworks

2019-08-17 08:44发布

问题:

While integrating PWA for Frameworks based on XML & FTL like ApacheOfbiz, Oracle ATG the js, CSS file gets cached but unable to cache text/document files. As the result my pages are not loading in offline

Here my service worker code:

workboxSW.router.registerRoute(/\.(?:html|document|css|js)$/, workboxSW.strategies.networkFirst({
  "cacheName": "CachePages"
}), 'GET');