FrontEnd.ro logo
Deci FrontEnd-ul e doar butoane?
// service-worker.js

const resourcesToCache = [
  "index.html",
  "src/bundle.js",
  "src/styles/style.css",
];

self.addEventListener('install', (event) => {
  event.waitUntil(
    caches.open("offline-cache").then(cache => {
      return cache.addAll(resourcesToCache);
    })
  )
});