blinkid-in-browser icon indicating copy to clipboard operation
blinkid-in-browser copied to clipboard

Cached issue while loading the WASM file

Open pjain8889 opened this issue 3 years ago • 1 comments

I noticed the In-browser SDK version upgraded to 5.13.0 but not sure from today I am facing an issue in the older version(5.11.4) also. While loading the WASM file in the browser, it is cached and giving an error when uploading an image for extraction.

It is cached instead of loading: image

Error during upload a image: image

This is the code I am using : loadSettings.engineLocation = "https://unpkg.com/@microblink/[email protected]/resources/"; loadSettings.wasmType = BlinkIDSDK.WasmType.Basic;

Let me know what I am missing here or the issue is from the version. Please let me know as soon as possible.

Thanks, Prashant

pjain8889 avatar Sep 29 '21 12:09 pjain8889

Hi @pjain8889,

I'm not able to reproduce this issue.

Browser caching of the resources shouldn't be a problem if you're using exact links, e.g. loadSettings.engineLocation = "https://unpkg.com/@microblink/[email protected]/resources/"; instead of loadSettings.engineLocation = "https://unpkg.com/@microblink/blinkid-in-browser-sdk/resources/";. But that looks good, based on the code you provided.

Can you make sure that you're using the same version of the JavaScript SDK and WebAssembly engine?

Also, in which way are you importing/including the JavaScript SDK files?

Sincerely, Vjekoslav

vjekoart avatar Oct 22 '21 08:10 vjekoart