Skip to content

Commit

Permalink
2024-12-01
Browse files Browse the repository at this point in the history
  • Loading branch information
bd4sur committed Nov 30, 2024
1 parent ca950d0 commit 266d7cf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion infer/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,8 @@
}

if(window.caches !== undefined && is_cached === false) {
const responseToCache = new Response(new Blob(file_buffer), {
let blob = new Blob([file_buffer]);
const responseToCache = new Response(blob, {
headers: { 'Content-Type': response.headers.get('content-type') }
});
await _cache.put(url, responseToCache);
Expand Down

0 comments on commit 266d7cf

Please sign in to comment.