Take the 2-minute tour ×

I'm setting my app up to run offline and I have hit a brick wall. All of my files are being cached but I noticed in the Safari console that the app is adding a query sting to the filename so the correct file is not loaded. In Safari the link looks like this


Is there any way to prevent the query string from being added? My data store code is below.

Ext.define('App.store.Sections', {
    extend: 'Ext.data.TreeStore',

    requires: [

    config: {
        autoLoad: true,

        model: 'App.model.Sections',

        proxy: {
            type: 'ajax',
            url: 'resources/data/data.json',
            reader: {
                type: 'json',
                rootProperty: 'items'
share|improve this question

1 Answer 1

See Ext.Ajax.setDisableCaching.

Be careful of the double negation: it has to be set to false in your case : you don't want to use the disable caching system.

share|improve this answer
I changed my data store to the following but it still isn't working. All of the ?dc= stuff is preventing the app from running off line. Am I totally missing something? proxy: { type: 'ajax', disableCaching:false, url: 'resources/data/data.json', reader: { type: 'json', rootProperty: 'items' } –  creatvepro May 21 '12 at 14:56
I also added the following bit to the top of my app.js but it didn't work either. Ext.Loader.setConfig({ enabled: true, disableCaching:false }); –  creatvepro May 21 '12 at 19:31
Try Ext.Ajax.setDisableCaching(false); at the top of your app –  Gaëtan Frenoy May 24 '12 at 19:53

Your Answer


