trick

Retrieving RSS with Javascript and NoCache

  • Posted on: 30 March 2015
  • By: davis

I use Google Feeds API to power my RSS fetching for a couple applications. One inevitable problem with dynamically accessing RSS feeds is that they tend to be cached.

The easiest cache-busting Javascript trick, in my opinion, is to append your RSS Feed URI with ?nocache and a random value.

UPDATE 4/42015 - Removed the trailing '/' from the RSS URL below. The code will fail with Google Feed's API if you do not remove the trailing '/'. Alternatively, you may replace the ? with & if you wish to leave the slash.