如何正确重新加载webapp缓存文件?

时间:2013-10-03 14:02:08

标签: javascript caching sencha-touch sencha-touch-2 browser-cache

我无法更新我的Sencha Touch网络应用程序而无需清除浏览器缓存以使新版本正常工作。如果我没有手动清除缓存,我会收到此错误:

Error evaluating http://localhost/alpha1/app.js with message: SyntaxError: Unexpected token ,

一旦我清理了te缓存,它就能完美运行。问题可能来自哪里?

1 个答案:

答案 0 :(得分:2)

在app.json中将app.js的update属性设置为full

{
    "path": "app.js",
    "bundle": true,  /* Indicates that all class dependencies are concatenated into this file when build */
    "update": "full"
}