mirror of
https://github.com/zoldar/jenot.git
synced 2026-01-03 14:32:54 +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) => {
|
self.addEventListener("fetch", (event) => {
|
||||||
// We don't cache API requests
|
// We don't cache API requests
|
||||||
if (!event.request.url?.pathname) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!event.request.url.pathname.startsWith("/api")) {
|
if (!event.request.url.pathname.startsWith("/api")) {
|
||||||
event.respondWith(
|
event.respondWith(
|
||||||
cacheFirst({
|
cacheFirst({
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue