caching - Google Ajax feed cache -
i getting pinterest board feed via ajax call. changes on wall not visible in result. have searched solution around caching. seem have problem implementing it.
//url feed var url = 'http://pinterest.com/' + this.options.username + '/feed.rss?nocache=' + (new date).gettime(); ///google service var api = "http://ajax.googleapis.com/ajax/services/feed/load?v=1.0&q=" + encodeuricomponent(this.url) + "&num=" + this.options.limit + "&output=json_xml&callback=?";
this trows error:
uncaught typeerror: cannot read property 'feed' of null {"responsedata": null, "responsedetails": "feed not loaded.", "responsestatus": 400}
when leave out '?nocache='+(new date).gettime(). cached feed loaded.
Comments
Post a Comment