Skip to content

Instantly share code, notes, and snippets.

@criscokid
Created January 26, 2009 15:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save criscokid/52839 to your computer and use it in GitHub Desktop.
Save criscokid/52839 to your computer and use it in GitHub Desktop.
function fetchInfo(){
//Notice the Math.random(), since Google uses the URL as the key for the cache
//modifying the URL every time bypasses the cache. Remember that this will put extra
//stress on your server.
var url = "http://mysite.com/gadget/someinfo.xml?" + Math.random();
_IG_FetchXmlContent(url, setupInfo, {refreshInterval: 60});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment