wasm files are not hashed, leading to caching issues on deployments
Problem
After redeploying my site the page will not open, reporting the error Uncaught (in promise) LinkError: WebAssembly.instantiate(): Import #272 “wbg” “__wbindgen_closure_wrapper17305”. function import requires a callable
So far I've been able to fix this by clearing my browser cache, but I'm not sure why this is happening
Steps To Reproduce
I haven't been able to reproduce this bug consistently yet, it triggers by chance when redeploying the site
I encountered this a lot when deploying bevy built projects on web target, but not yet with dioxus. I had never successfully investigated why this happens and how to avoid it, because it might be a mixture of nuances of browser side cacheing, hosting service's caching, wasm-bindgen, and project's build toolchain.
This is the browser's resource cache problem. Same problem happens when a newer version deployed.
This is the browser's resource cache problem. Same problem happens when a newer version deployed.
Ok thanks, also would like to ask if there is any other way to fix this besides manually clearing the browser cache?
I encountered this a lot when deploying bevy built projects on web target, but not yet with dioxus. I had never successfully investigated why this happens and how to avoid it, because it might be a mixture of nuances of browser side cacheing, hosting service's caching, wasm-bindgen, and project's build toolchain.
Ok thanks, also would like to ask if there is any other way to fix this besides manually clearing the browser cache?
I've encountered the same issue.