Closed sigmaSd closed 1 year ago
It should be. Does your cache not store a version number?
Ah so the version is in the file name cool
What about adding this to deno wasm build somewhere seems useful, maybe also worth mentioning serde_wasm_bindgen
Yeah, it would be probably better if wasmbuild just handled this or had an option to generate code that does. One restriction in wasmbuild is it probably shouldn’t have any external dependencies so it works well in a web browser. We would also probably have to have more general caching (maybe a hash of the url for the filename in a general wasmbuild cache folder). Would you like to implement this?
Sure I'll look into it, I'll start by opening an issue there
I didn't run into a problem yet, but just reading the code, it seems like wasm caching just checks if the file exists locally
So if the wasm file gets new apis, it wont be re-downloaded again because it exists already
Maybe the wasm caching need to be aware of dax version