This is a migrated thread and some comments may be shown as answers.

UNIQUE ID added to the URL parameter if use XMLHttprequest

6 Answers 338 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
tao
Top achievements
Rank 1
tao asked on 05 May 2013, 12:59 AM
my page has three tabs. each time when open one tab, it will download the kendo ui relative js file. i tracked the network request and find out there is an unique id added to the js resource so the browser will not cache the js file properly.
 the url goes like this:
/Scripts/kendo/2013.1.319/kendo.all.min.js?_=1367715372684 

URL Method Result Type Received Taken Initiator Wait‎‎ Start‎‎ Request‎‎ Response‎‎ Cache read‎‎ Gap‎‎
/Scripts/kendo/2013.1.319/kendo.all.min.js?_=1367715372684 GET 200 application/x-javascript 0.66 MB 1.35 s JS Library XMLHttpRequest 1513 0 109 1248 0 1155

Dose anyone konw how to remove the unique id?

6 Answers, 1 is accepted

Sort by
0
T. Tsonev
Telerik team
answered on 07 May 2013, 07:30 AM
Hi,

The unique timestamp is added by jQuery to prevent caching. See the cache option on jQuery.ajax()

I can't tell how this option got set to "false" from the provided information. Perhaps it's a debugging feature of the framework you're using? Anyway, you might be able to override it with ajaxSetup()

I hope this helps.

Kind regards,
Tsvetomir Tsonev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
tao
Top achievements
Rank 1
answered on 07 May 2013, 08:59 AM
thanks.
 i don't think it's causd by jquery framework itself, becasue it also happened on  kendo ui resource.
0
T. Tsonev
Telerik team
answered on 08 May 2013, 12:08 PM
Hi,

The Kendo UI framework doesn't have a built-in scripts loader. The scripts are likely loaded indirectly by a call to $.ajax.

We should be able to help if you can prepare a sample page that replicates this behavior.

Greetings,
Tsvetomir Tsonev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
T. Tsonev
Telerik team
answered on 08 May 2013, 12:44 PM
Hi,

We investigated the issue further and it turns out that the problem is caused by the TabStrip code. It issues an $.ajax request with cache explicitly set to false.

A workaround is not possible and the only solution is to change cache to true in the TabStrip.ajaxRequest method.

We'll log this issue and provide a proper fix in the future. Apologies for the caused inconvenience.

Greetings,
Tsvetomir Tsonev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Josh
Top achievements
Rank 1
answered on 09 Aug 2013, 10:38 PM
This still appears to be set explicitly to false in version 2013.2.716 - any idea when this will be fixed?
0
Vladimir Iliev
Telerik team
answered on 13 Aug 2013, 03:03 PM
Hi Tao,

 
Currently I can't be more specific exactly when the fix will be released, however currently it's logged in our system with high priority. I would suggest to regularly check our RoadMap for updates on the matter.

Kind Regards,
Vladimir Iliev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
General Discussions
Asked by
tao
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
tao
Top achievements
Rank 1
Josh
Top achievements
Rank 1
Vladimir Iliev
Telerik team
Share this question
or