mirror of
https://github.com/zoldar/jenot.git
synced 2026-01-05 07:02:55 +00:00
Fix terribly broken SW caching
This commit is contained in:
parent
1dec90e0a2
commit
97e5d9171d
1 changed files with 2 additions and 1 deletions
|
|
@ -60,7 +60,8 @@ self.addEventListener("activate", (e) => {
|
||||||
});
|
});
|
||||||
|
|
||||||
self.addEventListener("fetch", (event) => {
|
self.addEventListener("fetch", (event) => {
|
||||||
if (event.request.url.pathname.startsWith("/api")) {
|
const url = new URL(event.request.url);
|
||||||
|
if (url.pathname.startsWith("/api")) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue