Results 1 to 3 of 3

Thread: Why is a random num added to the URL?

  1. #1
    Join Date
    Feb 2008
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Why is a random num added to the URL?

    1) Script Title:
    Ajax Tab
    2) Script URL (on DD):
    http://www.dynamicdrive.com/dynamici...tent/index.htm
    3) Describe problem:
    The script seems to add a random number to the end of each GET, making the pages impossible to cache on the server...
    Example: I http://domain.net/app/inlinePage?open&Page=About&1245251588352
    The bold part comes from the AjaxTabs script i guess...
    Last edited by Snookerman; 06-18-2009 at 11:54 AM.

  2. #2
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    At the very top of the script, change the highlighted below to 0:

    Code:
    
    var ddajaxtabssettings={}
    ddajaxtabssettings.bustcachevar=1  //bust potential caching of external pages after initial request? (1=yes, 0=no)
    ddajaxtabssettings.loadstatustext="<img src='ajaxtabs/loading.gif' /> Requesting content..."
    Hope this helps.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

  3. #3
    Join Date
    Feb 2008
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks
    That made all the difference.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •