www.webdeveloper.com
Results 1 to 4 of 4

Thread: AJAX request() Question...

  1. #1
    Join Date
    Sep 2008
    Posts
    260

    AJAX request() Question...

    Hello...

    for some reason, whenever I make changes to my xml file and save them to the server, the request object still read's the old file...what's up with that?

  2. #2
    Join Date
    Oct 2003
    Location
    Andover, UK
    Posts
    945
    Probably the same reason background images in CSS don't always update - caching. Pass a random variable in the GET path of your request.

  3. #3
    Join Date
    May 2003
    Location
    Between Baltimore and DC
    Posts
    3,579
    GET requests should be cached.

    Eric
    Tech Author [Ajax In Action, JavaScript: Visual Blueprint] | twitter | linkedin | http://www.pascarello.com

  4. #4
    Join Date
    Sep 2008
    Posts
    260
    Quote Originally Posted by A1ien51 View Post
    GET requests should be cached.

    Eric
    You mean something like:

    request.open("GET","whatever.xml"+Math.random());

    ?

    I thought that the caching issue is only with IE..I'm having this issue in Firefox??
    Last edited by ChuckB; 07-28-2009 at 07:58 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles