【发布时间】:2017-06-14 14:26:27
【问题描述】:
我们正在使用 Extjs 6 并且我们正在使用 sencha cmd 来构建我们的应用程序。
我们正面临一个问题。每次我们发布应用程序的生产版本(如 6.3 到 6.4)时,捆绑的 app.js 不会更新,浏览器会从 (from disk cache) 获取该文件。因此,每次我们都必须告诉我们的用户,请在您获得新版本后清除浏览器的缓存。 That's annoying.
这是我的 app.json 文件。
"output": {
"base": "${workspace.build.dir}/${build.environment}/${app.name}",
"page": "index.html",
"manifest": "${build.id}.json",
"js": "${build.id}/.js",
"appCache": {
"enable": false,
"update": "full"
},
"resources": {
"path": "${build.id}/resources",
"shared": "resources"
}
},
"production": {
"output": {
"appCache": {
"enable": false,
"path": "cache.appcache"
}
},
......
"cache": {
"enable": false
}
...
【问题讨论】: