简体   繁体   English

Qt webassembly缓存

[英]Qt webassembly cache

I am beginner in WebAssembly我是 WebAssembly 的初学者

I want to create a Qt WebAssembly application.我想创建一个 Qt WebAssembly 应用程序。

Does Qt WebAssembly have cache? Qt WebAssembly 有缓存吗? If I update my application, do I need to clear the cache so my program will update?如果我更新我的应用程序,我是否需要清除缓存以更新我的程序?

A Qt WebAssembly application is just another web asset, the.wasm file and the.js file of your app should be handled from the server side, so cache only updates based on the etag of your file. Qt WebAssembly 应用程序只是另一个 web 资产,应从服务器端处理应用程序的 .wasm 文件和 .js 文件,因此仅缓存基于文件的 etag 的更新。 If you don't set your cache headers, the browser most likely will try to download your whole app.如果您不设置缓存标头,浏览器很可能会尝试下载您的整个应用程序。 I was involved in the Felgo Web Assembly development, check out or blog post about it https://blog.felgo.com/updates/release-3-5-0-run-qt-apps-in-browser-webassembly-wasm我参与了 Felgo Web 装配开发,查看或发布有关它的博客https://blog.felgo.com/updates/release-3-5-0-run-qt-apps-in-browser-webassembly-wasm

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

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