> > From: Michael Geary
> > That TTL setting is a great idea. It wouldn't work to put 
> > the setting in the gadget XML itself, would it? If you have
> > the TTL set to an hour or a day, and now you change it
> > to a smaller value, IG won't see the change until it fetches
> > a fresh copy of your XML.

> From: Matt (Guru)
> That's how it works for DNS propagation. Typically, if you 
> expect to make changes in the next few days you set the TTL 
> lower. Then you wait a day or two before making your changes, 
> because by then your new content will have been retrieved and 
> your fresh TTL value will be stored.
> 
> So if it were put in the XML, it would still take some 
> thinking in advance. You couldn't see a problem and just 
> change the TTL and expect it to be live.

My point exactly. What if you have a gadget that scrapes data off a web
page, and that web page changes? Didn't this happen to you a week ago? :-)
The TTL-in-XML solution wouldn't have helped you then.

> Anyway, it seems that finance.google.com is no longer serving 
> content to my gadget (perhaps I've been explicitly blocked?), 
> so I guess I have bigger problems to tackle...

Yeah, it seems like there's a possible TOS violation there. Check sections
5.3, 5.5, and 8.2:

http://www.google.com/accounts/TOS

(Sorry, don't shoot the messenger!)

Also, you're hammering the finance.google.com server because of the
millisecond cachebuster in your URL:

  var furl = "http://finance.google.com/finance"; + "?t=" + ((new
Date()).getTime());
  _IG_FetchContent( furl, function(str) { ... } );

This is forcing IG to hit finance.google.com and load a fresh copy of that
page every time your gadget is loaded, or reloaded on your timer. There's
essentially no caching among multiple users because of this. The only time
two users would get the came cached copy would be if the clock happened to
be the same on both, right down to the millisecond.

I'll bet that's what got their attention more than the possible TOS issue.

-Mike


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"iGoogle Developer Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Gadgets-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to