Re: RSS Feed returning very old posts

341 views
Skip to first unread message

Jeremy Geerdes

unread,
Jan 28, 2013, 8:41:35 AM1/28/13
to google-ajax...@googlegroups.com
This is a recurring issue in the Feeds API which has been mentioned a number of times on this group. Strangely, requesting historical entries helps, but it's still not a perfect solution. The best workaround that we have at this time is to add a cache-busting parameter to the feed's url. So in your script, if you have a line similar to this

var feedUrl = 'http://www.napls.us/feed'

you would change it to something like this

var feedUrl = 'http://www.napls.us/feed?nocache=' + (new Date).getTime()

Be advised, though, this will compel the API to pull the feed every time you request it. So if your app is making multitudes of requests, you could cause problems for the school. I.e., be nice.

jg

On Mon, Jan 28, 2013 at 7:32 AM, Lonnie Morgan <lonnie...@gmail.com> wrote:
I've been reading up on the Feed API and hit a very weird issue. At first I thought it was a cache issue, but I've tried a few different cache busting options and still cannot get the most current posts from my kids' school site to show up via the API call. 

Here is the feed link:


Pulling this up in Chrome works just fine. But running through the Playground with the feed brings back posts more than a year old.

I've bounced around the internets looking for similar issues and this one has me stumped. 

Any thoughts...

NOTE: I believe that the school is using Google Sites. Not sure if that has any impact on the question.

--
--
You received this message because you are subscribed to the Google
Groups "Google AJAX APIs" group.
To post to this group, send email to
google-ajax...@googlegroups.com
To unsubscribe from this group, send email to
google-ajax-searc...@googlegroups.com
To view this message on the web, visit
https://groups.google.com/d/msg/google-ajax-search-api/-/CGusjEtL7L0J
For more options, visit this group at
http://groups.google.com/group/google-ajax-search-api?hl=en?hl=en
 
---
You received this message because you are subscribed to the Google Groups "Google AJAX APIs" group.
To unsubscribe from this group, send email to google-ajax-searc...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Jeremy R. Geerdes
Generally Cool Guy
Des Moines, IA

If you're in the Des Moines, IA, area, check out Debra Heights Wesleyan Church!

Lonnie Morgan

unread,
Jan 28, 2013, 8:28:29 PM1/28/13
to google-ajax...@googlegroups.com
Thanks jg. I gave that a try and it's still having issues. When I try it in the Google Playground, it says "Loading...", but it fails.

var feed new google.feeds.Feed("http://www.napls.us/high/feed?nocache=(new Date).getTime());

I checked for an error message:

alert('err# ' result.error.code ' error: ' result.error.message);

...got this back:

err# 404 error: invalid result data

Very strange. 

On Monday, January 28, 2013 8:41:35 AM UTC-5, jgeerdes [AJAX APIs "Guru"] wrote:
This is a recurring issue in the Feeds API which has been mentioned a number of times on this group. Strangely, requesting historical entries helps, but it's still not a perfect solution. The best workaround that we have at this time is to add a cache-busting parameter to the feed's url. So in your script, if you have a line similar to this

var feedUrl = 'http://www.napls.us/feed'

you would change it to something like this

var feedUrl = 'http://www.napls.us/feed?nocache=' + (new Date).getTime()

Be advised, though, this will compel the API to pull the feed every time you request it. So if your app is making multitudes of requests, you could cause problems for the school. I.e., be nice.

jg

On Mon, Jan 28, 2013 at 7:32 AM, Lonnie Morgan <lonnie...@gmail.com> wrote:
I've been reading up on the Feed API and hit a very weird issue. At first I thought it was a cache issue, but I've tried a few different cache busting options and still cannot get the most current posts from my kids' school site to show up via the API call. 

Here is the feed link:


Pulling this up in Chrome works just fine. But running through the Playground with the feed brings back posts more than a year old.

I've bounced around the internets looking for similar issues and this one has me stumped. 

Any thoughts...

NOTE: I believe that the school is using Google Sites. Not sure if that has any impact on the question.



--

Lonnie Morgan

unread,
Jan 29, 2013, 7:56:24 PM1/29/13
to google-ajax...@googlegroups.com
FYI...

I have semi-traced this to an issue with Wordpress and Google's API. The symptoms that I am seeing have been replicated in Google Reader when reading some RSS feeds from Wordpress. I am going to work with my school's webmaster to try and get it clean.

And probably will have to roll my own reader/parser too. :(

Reply all
Reply to author
Forward
0 new messages