简体   繁体   English

如何在Forge Autodesk中从浏览器缓存保存/加载模型

[英]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. 在我们的应用程序中,用户查看3D模型,导航到其他地方然后返回模型是很常见的。
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. 通过良好的互联网连接加载模型需要10到15秒的时间。 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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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