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');