mirror of
https://github.com/zoldar/jenot.git
synced 2026-01-03 06:22:55 +00:00
Get rid of egregious bug in service worker
This commit is contained in:
parent
6c635bf97c
commit
c5125bf612
1 changed files with 0 additions and 4 deletions
|
|
@ -31,10 +31,6 @@ const cacheFirst = async ({ request, fallbackUrl }) => {
|
|||
|
||||
self.addEventListener("fetch", (event) => {
|
||||
// We don't cache API requests
|
||||
if (!event.request.url?.pathname) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (!event.request.url.pathname.startsWith("/api")) {
|
||||
event.respondWith(
|
||||
cacheFirst({
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue