You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem with it that on simple or misconfigured servers it has no Cache policy and thus getting fetched always.
To fix it we should find a way to enforce caching.
First approach is to leverage IndexDB and put bytes into browser's memory with time-to-live restriction.
Dynamic import won't work here as it works only with ES modules.
LocalStorage cannot be used because of memory limitation.
Objectives
use IndexDB to save bytes of wasm;
investigate alternative approaches;
The text was updated successfully, but these errors were encountered:
As of now
.wasm
files are retrieved by usingfetch
API which relies on server response whether to cache it and how long.js-rln/src/rln.ts
Line 36 in 7e8cb89
js-rln/src/rln.ts
Line 42 in 7e8cb89
Problem with it that on simple or misconfigured servers it has no
Cache
policy and thus getting fetched always.To fix it we should find a way to enforce caching.
First approach is to leverage
IndexDB
and putbytes
into browser's memory withtime-to-live
restriction.Dynamic import won't work here as it works only with ES modules.
LocalStorage cannot be used because of memory limitation.
Objectives
wasm
;The text was updated successfully, but these errors were encountered: