0

WASM file gets downloaded twice, Is there anyway we can avoid downloading same file more than once.

here ERT_Facial_Alignment_asm.js referring to ERT_Facial_Alignment_asm.wasm file, but wasm downloaded twice.

Please find attached file here.

enter image description here

Vasant
  • 101
  • 2
  • 10

1 Answers1

0

This issue should be solved by setting correctly the header:

content-type=application/wasm

On your server hosting the wasm file.

When the content-type is not present, it will try to compile while downloading, then fail, then download again to compile offline.

Baart
  • 571
  • 1
  • 6
  • 19