I want to convert a existing traditional web application with many resources into progressive web application. I am researching before committing to either of the options. I read somewhere about NPM package called sw-precache that detects all static resources (HTML, JavaScript, CSS, images, etc.) and holding resources by self-build in a cache
const staticDevCoffee = "dev-coffee-site-v1"
const assets = [
"/",
"/index.html",
"/css/style.css",
"/js/app.js",
"/images/coffee1.jpg",
"/images/coffee2.jpg",
"/images/coffee3.jpg",
"/images/coffee4.jpg",
"/images/coffee5.jpg",
"/images/coffee6.jpg",
"/images/coffee7.jpg",
"/images/coffee8.jpg",
"/images/coffee9.jpg",
]
Is Service worker framework for precache on npm better than if I build cache build from scratch myself in term of performances. What is the pro and cons of the two.