我们正在使用 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
}
...