Disable caching for ExtJs app

后端 未结 2 1153
迷失自我
迷失自我 2020-12-21 04:10

We have a ExtJS 5.01 app built with Sencha cmd 5.0.1.231.

The issue we are facing is that browsers seem to cache the old version of our application. On looking at t

2条回答
  •  生来不讨喜
    2020-12-21 04:59

    I don't get it why "sometimes" the browser is caching your files, even when caching is disabled by default. I even force the framework to use cache whenever possible, by putting this peace of code in my app.js:

    Ext.Loader.setConfig({
        enabled: true,
        disableCaching: false
    });
    

    While developing I open up my DevTools and set Disable cache (while DevTools is open). This will not allow Chrome to cache files.

    But it could be that in your app.json you are forcing "caching" into your local storage by setting "update" or "appcache". Check your localstorage and your app.json to verify.

提交回复
热议问题