serviceWorker.js 386 B

123456789101112131415
  1. const CHATGPT_NEXT_WEB_CACHE = "chatgpt-next-web-cache";
  2. self.addEventListener("activate", function (event) {
  3. console.log("ServiceWorker activated.");
  4. });
  5. self.addEventListener("install", function (event) {
  6. event.waitUntil(
  7. caches.open(CHATGPT_NEXT_WEB_CACHE).then(function (cache) {
  8. return cache.addAll([]);
  9. }),
  10. );
  11. });
  12. self.addEventListener("fetch", (e) => {});