压缩
可以启用tomcat的gzip压缩功能,具体可以参考我的这篇笔记:http://www.cnblogs.com/starsli/p/4741632.html
缓存
You can change the _dc param value or even turn it off using the loader config in app.json. I personally like using the build timestamp so when I deploy a build it will use the same timestamp and when I deploy another build there will be a new timestamp. This is what I have in my app.json:
"loader": {
"cache": "${build.timestamp}"
}
这是别人的解决方法,貌似在EXTJS6中可以使用。
我最后的解决办法是:
build项目后,打开index.html文件,找到disableCaching,后面是很长的一个js三元表达式,将其改为!1,这样加载app.js文件是就不会有_dc参数了。