PDA

View Full Version : What's the purpose of the _dc argument when a JsonStore makes a request?



jbrendel
29 Sep 2010, 11:50 AM
I added a JsonStore in the Designer. When I load data, I see that a "_dc" parameter is added to the request query, like so:


/resource/AllCustomer/entries?_dc=1285789611130

This seems to be the current time stamp, down to the millisecond.

What is the reason to add this to the request? And is there a way to disable it?

Thank you very much...

Juergen

httpdotcom
29 Sep 2010, 3:05 PM
Yes, it is a timestamp in milliseconds. It designed to prevent caching of a store load.
See Ext.data.Connection.disableCaching for more information.