【发布时间】:2012-08-15 06:25:10
【问题描述】:
我想让 Meteor (meteor.com) 应用程序在不通过缓存清单连接到流星服务器(离线)的情况下加载。
我认为这里已经提出了类似的问题: How can I add a cache manifest to a Meteor app? 但我无法遵循他们的解决方案(更多内容见下文)。
是否有一种简单的方法可以在 Meteor 应用程序中包含缓存清单并在清单中填充所有流星资产?
从相关帖子中我的问题是:
-
您可以通过以下方式获取 css 和 js 文件的完整列表:bundle.css 和 bundle.js.client
“挂钩”这些文件涉及什么?我应该如何进行?
-
buffer.files.client_cacheable['manifest.appcache'] = new Buffer(manifestcontent);
这是做什么的,应该去哪里?
-
然后你可以编辑/app/lib/app.html.in在里面添加引用
这只是html标签中的
manifest="/application.manifest"位吗?
【问题讨论】:
-
只需输入
meteor add appcachestackoverflow.com/questions/10668687/…
标签: html node.js offline meteor cache-manifest