Search code examples
extjssencha-touch-2

How do i remove _dc parameter from sencha touch 2 request


In every sencha request there are an extra parameter _dc. Please have took at the following image. Look every request has _dc parameter

I want to remove this parameter for every request. So, please help me to do that.

Thank You...


Solution

  • _dc - this is "disable cache". You can disable this noCache parameter in proxy in your store\model. Example:

    Ext.define('your model name', {
       extend: 'Ext.data.Model',
    
       fields: [...],
    
       proxy: {
          url: 'getcandidateblock',
          noCache: false
       }
    })
    

    But it's bad idea for ALL get requests to server.