diff --git a/public/sw.js b/public/sw.js index 53928091..7ec6eaa6 100644 --- a/public/sw.js +++ b/public/sw.js @@ -1,5 +1,5 @@ -const CACHE = "atom-v2"; -const API_CACHE = "atom-api-v2"; +const CACHE = "atom-v3"; +const API_CACHE = "atom-api-v3"; self.addEventListener("install", () => self.skipWaiting()); @@ -60,14 +60,6 @@ self.addEventListener("fetch", (event) => { } if (req.mode === "navigate") { - event.respondWith( - fetch(req) - .then((res) => { - const copy = res.clone(); - caches.open(CACHE).then((c) => c.put(req, copy)).catch(() => {}); - return res; - }) - .catch(() => caches.match(req).then((hit) => hit || caches.match("/"))), - ); + event.respondWith(fetch(req)); } }); diff --git a/src/app/(site)/login/page.tsx b/src/app/(site)/login/page.tsx index d6edadaa..97db0168 100644 --- a/src/app/(site)/login/page.tsx +++ b/src/app/(site)/login/page.tsx @@ -125,7 +125,7 @@ export default async function LoginPage() {
@@ -481,7 +481,7 @@ export default async function Home() { >
@@ -557,7 +557,7 @@ export default async function Home() {
}}
>