Question

I'm having trouble loading my updated XML for a contextual gadget in gmail. I was reading through the Google Gadgets FAQ, and it is stated that the XML files are cached for a few hours. I've been searching for a while on how to get around this and found a few solutions such as:

  • Add a nocache=1 (or something close to that) to the querystring
  • Add anything to the querystring
  • Use the "My Gadget" gadget to disable caching.

None of these solutions work for me, and I'm suspecting it's because none of them are newer than 2010 and things tend to change. Has anyone else run into this issue recently?

Was it helpful?

Solution

It is not &nocache=1 but &nogadgetcache=1 that must be added;

make sure you append this before the # in the URL !

from the docs :

Changes to gadget don't show up immediately.

Gmail is probably using a cached version of the gadget. Changes to gadgets can take some time to be reflected because of caching. Solution: Make sure you include the flag &nogadgetcache=1 in the URL when you start Gmail to test your gadgets. This flag ensures that any changes you make to gadgets will show up in your Gmail account immediately. If you reference external resources in your gadget, such as JS or CSS files located on external servers, those resources are still subject to caching.

https://developers.google.com/gmail/contextual_gadgets

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top