Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 654
Sudipta Dhara Avatar asked Feb 27 '26 08:02

Sudipta Dhara


1 Answers

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

like image 137
Igor Semin Avatar answered Mar 02 '26 03:03

Igor Semin