PDA

View Full Version : Why 'disableCaching: false' not work?



hitfishking
21 Jul 2013, 9:17 AM
There are several threads in this forum discussing how to turn off the '_dc=' param from url.

Following those discussions, I config my project with the code below:

Following is my code:

Ext.Loader.setConfig({
disableCaching: false,
disableCachingParam: '_dc1',
enabled: true,
...


When I preview, the url remains unchanged, the '_dc' param is still there. It seems the above code didn't work at all.:-/:-?

What I missed? Any suggestion would be appreciated!=D>

slemmon
24 Jul 2013, 1:58 PM
The following worked for me:


Ext.Loader.setConfig({
enabled : true,
disableCaching : false
});


When I set disableCaching to true I see the URL requesting classes generated like:
http://localhost/ext-4.2.1.883/src/tip/ToolTip.js?_dc=1374702931666

With disableCaching set to false I see:
http://localhost/ext-4.2.1.883/src/tip/ToolTip.js