UNIQUE ID added to the URL parameter if use XMLHttprequest

7 posts, 0 answers
  1. tao
    tao avatar
    2 posts
    Member since:
    Mar 2013

    Posted 04 May 2013 Link to this post

    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?
  2. T. Tsonev
    Admin
    T. Tsonev avatar
    2815 posts

    Posted 07 May 2013 Link to this post

    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!
  3. tao
    tao avatar
    2 posts
    Member since:
    Mar 2013

    Posted 07 May 2013 Link to this post

    thanks.
     i don't think it's causd by jquery framework itself, becasue it also happened on  kendo ui resource.
  4. T. Tsonev
    Admin
    T. Tsonev avatar
    2815 posts

    Posted 08 May 2013 Link to this post

    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!
  5. T. Tsonev
    Admin
    T. Tsonev avatar
    2815 posts

    Posted 08 May 2013 Link to this post

    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!
  6. Josh
    Josh avatar
    72 posts
    Member since:
    Jun 2013

    Posted 09 Aug 2013 Link to this post

    This still appears to be set explicitly to false in version 2013.2.716 - any idea when this will be fixed?
  7. Vladimir Iliev
    Admin
    Vladimir Iliev avatar
    2194 posts

    Posted 13 Aug 2013 Link to this post

    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!
Back to Top