Geeks With Blogs


Add to Google

Tim Hibbard CEO for EnGraph software

When developing modules for Google Homepage, you use the _IG_FetchContent command to fetch data from an external source. Google is "nice" enough to cache that data source (for days) and that causes problems with dynamic sources like Where's Tim webservice. To get around this, put a random number at the end of the url as a query string, like this:

_IG_FetchContent('' + Math.floor(Math.random()*16364), function callback(response) { worker(response); });

This will generate a new url so google will go outside their cache to get your real data.

Posted on Saturday, March 25, 2006 5:03 PM | Back to top

Comments on this post: _IG_FetchContent "bug" in Google Homepage

No comments posted yet.
Your comment:
 (will show your gravatar)

Copyright © Tim Hibbard | Powered by: