Removing _dc parameter in Ext

Viewed 28646

Using Ext, default Ext.Ajax add to GET-request _dc parameter. For example

GET /ConnViewProcessing/?_dc=1263286227619

How to remove this parameter?

PS: it's necessary to manually cache response to ETag and If-None-Match.

14 Answers

Set disableCaching option to false:

Ext.Ajax.disableCaching = false;

This should work with extjs 4.0.7:

Ext.Loader.config.disableCaching = false;

For all who are looking for a way to disable it in a newer version:

proxy: {
    type: 'ajax',
    noCace: false
}
Related