Today I was updating one of our Google Gadgets at work and after almost an hour of changing random stuff in the code with no different result on iGoogle I realized I had forgotten about the cache! Google seems to cache XML gadget files and Flash content for at least 1 hour. I haven’t found a way to disable this per gadget (although I spent no time looking) but what you can do is use the Developer’s Gadget to control the cache for each gadget on your homepage. This is a must have if you’re doing any type of Google Gadget development… add it to your iGoogle page by clicking here.
Google Gadget Cache
June 9th, 2008 · 7 Comments
Tags: Google Gadget · xml
It also caches thumbnail and meta info for longer it seems. And, by longer, I mean forever??
Developer tool is irreplaceable!
Also using this developer utility but if you really like to know how the gadget will behave/look like/… you’ll need to uses it “normally” under iGoogle.
Caching is really a “problem” when releasing a new version of a gadget… Even if I remove the gadget and add it again the old one is used…
Google says:
I found that not to work. Instead, I installed the developer gadget and unchecked the box. Now it works!
If you are desperate you can change the name of the xml file (and all of the modified html, javascript, or Flash files, making sure to update file links as necessary). It’s time-consuming but should work.
David’s solution will definitely work – thanks for the tip. Ultimately the developer gadget is your best friend for getting rid of caching. From my original post:
http://www.google.com/ig/adde?moduleurl=www.google.com/ig/modules/developer.xml
Google says:
Note: If you are testing your gadget, add the “?nocache” option to the end of the URL to make sure that the gadget is updated when you change your code.
I found that not to work. Instead, I installed the developer gadget and unchecked the box. Now it works!
I just tried and this solution work!!!
I called my language file like :
”
and it’s perfect…
Locale messages=”http://caimans.usfoot.com/perso/docs/Gadget/lang/ALL_ALL.xml?nocache”