Fixed google login

This commit is contained in:
Roman Krček
2025-07-08 12:37:45 +02:00
parent ed317feae7
commit c248e4e074
4 changed files with 66 additions and 52 deletions

View File

@@ -36,6 +36,12 @@ self.addEventListener('fetch', (event) => {
async function respond() {
const url = new URL(event.request.url);
// Skip caching for auth routes
if (url.pathname.startsWith('/auth/')) {
return fetch(event.request);
}
const cache = await caches.open(CACHE);
// `build`/`files` can always be served from the cache