Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个要求,Web 应用程序需要存储大约2 GB的各种格式的文件以.htm, .pptx,.docx, etc.供离线访问。
.htm, .pptx,.docx, etc.
在 HTML5 中实现此要求的最佳方法是什么?
如果您想让网站(如 html 页面、图像、资源等)离线可用,只需创建一个清单文件并声明您的服务器交付的文件要在本地缓存。如果您想离线存储这些站点的数据,请使用 localStorage。
但我认为 2 GB 是很大的——大多数浏览器都配置为大约 5 MB。如果该网站仅供内部使用,您可以因此更改浏览器偏好;但对于公共网站,这可能是一个主要问题。