[CLOSED] Ext.net random id in querystring

  1. #1

    [CLOSED] Ext.net random id in querystring

    When I use Ext.net components there is some random ID sent in the query string. It may probably affect my cache. If a query string goes all the images and stuff are downloaded again. So what is the best way to cache these stuff in client side.

    Is this querystring mandatory? If not how can i remove it? If yes what is the use of this?
    Last edited by geoffrey.mcgill; Sep 11, 2011 at 11:58 PM. Reason: [CLOSED]
  2. #2
    Do you mean "_dc" parameter?
    it is cache buster to avoid caching of ajax requests
    You can set DisableCaching="false" to avoid that parameter
  3. #3
    Can you tell me where to put that setting ?
  4. #4
    Please set it for DirectEvent
  5. #5
    I need a global setting or setting per page. Please give me a global solution I cant set it for each and every events. Its huge
  6. #6
    I don't recommend to activate caching globally because you can get unexpected results (possible that all direct events (with GET method) will be cached and will not trigger server side handler more then once)

    But if you still need to activate cache globally then use
    Ext.Ajax.disableCaching = false;
    Ext.net.DirectEvent.disableCaching = false;
  7. #7
    Dear Vlad, I tried everything but still that _dc appears in my request.. I set it globaly
  8. #8
    Here is my test case which works fine
    <%@ Page Language="C#" %>
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <script runat="server">
        protected void CheckCacheBuster(object sender, DirectEventArgs e)
            string dc = Request["_dc"];
            X.Msg.Alert("Cache Buster", string.IsNullOrEmpty(dc) ? "Cache buster is absent" : ("Cache buster is presented - " + dc)).Show();
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head id="Head1" runat="server">
        <ext:ResourcePlaceHolder runat="server" Mode="ScriptFiles" />
        <script type="text/javascript">
            Ext.Ajax.disableCaching = false;
            Ext.net.DirectEvent.disableCaching = false;
        <form id="form1" runat="server">
            <ext:ResourceManager ID="ResourceManager1" runat="server" />
            <ext:Button runat="server" Text="Make request" OnDirectClick="CheckCacheBuster" />

Similar Threads

  1. Replies: 12
    Last Post: Dec 17, 2013, 3:42 AM
  2. Using Ext.net 1.4 some random garbled
    By lionel in forum 1.x Help
    Replies: 1
    Last Post: Jul 12, 2012, 9:49 AM
  3. Replies: 4
    Last Post: Sep 08, 2011, 5:56 PM
  4. [CLOSED] 'querystring maxlength exceeds
    By Vasudhaika in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jul 26, 2011, 1:12 PM
  5. [CLOSED] Random Request
    By rnachman in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Jun 13, 2011, 5:35 PM

Tags for this Thread

Posting Permissions