Hello, we have created a unity webgl build that is about 110mbs. We are storing the build in the public folder of a React/Nextjs app and serving it on a ubuntu server. We are using the react-unity-webgl to render the project and serve it on a new page. Our problem is the caching. The build is taking 4 mins to load and we understand it may be due to out internet connection, but we noticed in the console a message is popping up “successfully downloaded and stored in the indexedDB cache”. However on second load it also takes the same amount of time and not caching at all although it says it is caching. this is for both .wasm and .data files. We also checked in the in the indexed db in the browser both linked show that the data and wasm files are stored in cached however the time does not change, it still takes a long time to serve
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Strange caching-like behaviour | 5 | 1421 | June 21, 2018 | |
| Unity 5.6 wasm caching | 4 | 1341 | May 7, 2017 | |
| WebGL Settings Data caching? | 25 | 37586 | March 30, 2021 | |
| Caching in WebGL | 3 | 4130 | September 28, 2015 | |
| Web GL cache on game load | 9 | 1568 | July 29, 2017 |