3

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...

Sudipta Dhara
  • 608
  • 1
  • 5
  • 21

2 Answers2

2

_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.

Igor Semin
  • 2,486
  • 1
  • 20
  • 21
0

Use 'noCache' config in your store's proxy

To disable the '_dc' query param, set this to false.

From Sencha Doc,

noCache - Disable caching by adding a unique parameter name to the request. Set to false to allow caching. Defaults to true.

Vijay Sarin
  • 1,326
  • 1
  • 11
  • 31