clone
Browse files- code.js +1 -1
- llama2c.worker.js +1 -1
code.js
CHANGED
@@ -183,7 +183,7 @@ async function fetchArrayBuffer(url) {
|
|
183 |
return new Uint8Array(data);
|
184 |
}
|
185 |
const res = await fetch(url, { cache: "force-cache" });
|
186 |
-
await cache.put(url, res);
|
187 |
return new Uint8Array(await res.arrayBuffer());
|
188 |
}
|
189 |
|
|
|
183 |
return new Uint8Array(data);
|
184 |
}
|
185 |
const res = await fetch(url, { cache: "force-cache" });
|
186 |
+
await cache.put(url, res.clone());
|
187 |
return new Uint8Array(await res.arrayBuffer());
|
188 |
}
|
189 |
|
llama2c.worker.js
CHANGED
@@ -9,7 +9,7 @@ async function fetchArrayBuffer(url) {
|
|
9 |
return new Uint8Array(data);
|
10 |
}
|
11 |
const res = await fetch(url, { cache: "force-cache" });
|
12 |
-
await cache.put(url, res);
|
13 |
return new Uint8Array(await res.arrayBuffer());
|
14 |
}
|
15 |
class Llama2C {
|
|
|
9 |
return new Uint8Array(data);
|
10 |
}
|
11 |
const res = await fetch(url, { cache: "force-cache" });
|
12 |
+
await cache.put(url, res.clone());
|
13 |
return new Uint8Array(await res.arrayBuffer());
|
14 |
}
|
15 |
class Llama2C {
|