We can update the script. Find the gfeedfetcher.prototype.addFeed function in gfeedfetcher.js and replace it with this one:
Code:
gfeedfetcher.prototype.addFeed=function(label, url, bustcache){
if(bustcache){
bustcache = /\?/.test(url)? '&' : '?';
url = url + bustcache + 'bustcache=' + new Date().getTime();
}
this.feedlabels[this.feedlabels.length]=label;
this.feedurls[this.feedurls.length]=url;
}
Now, instead of adding '? or '& and bustcache=' + new Date().getTime() you can simply specify true or false as the third parameter when invoking addFeed. So if you had:
Code:
newsfeed.addFeed("Sample", "URL Removed by Me" + '?bustcache=' + new Date().getTime()) //Specify "label" plus URL to RSS feed
or:
Code:
newsfeed.addFeed("Sample", "URL Removed by Me" + '&bustcache=' + new Date().getTime()) //Specify "label" plus URL to RSS feed
Make it:
Code:
newsfeed.addFeed("Sample", "URL Removed by Me", true) //Specify "label" plus URL to RSS feed, optional bustcache (true/false)
If you don't want to bust the cache, use false or put nothing there, not even the comma.
I should note again that Google is caching these feeds to save on their bandwidth. So it makes sense to only take this sort of measure with feeds that update frequently, and/or that when they do update are presenting time sensitive information.
If updates are infrequent and done manually, one could edit the addFeed line on an as needed basis, setting the bust cache to true for a few days only when the feed is updated.
Bookmarks