简体   繁体   中英

How to save/load model from/to browser cache in forge autodesk

In our app, it's quite common that a user would look at a 3d model, navigates to some other place, and come back to the model.
When the user navigates away, I'm destroying the viewer as recommended in this question

Every time the user wants to come back to the model, it seems that the viewer tries to re-download it and then display it. 伪造的要求

It takes 10-15s to load the model with a good internet connection. However, since everything should have already been download, is there a way avoid making these requests and load the model directly from the browser cache?

我最近发布了一篇博客文章,内容涉及利用服务人员和新的缓存API在本地缓存Forge内容: https : //forge.autodesk.com/blog/disconnected-workflows

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM