Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
caching issues related to JSONP?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Skylar Woodward  
View profile  
 More options Jun 21 2012, 11:43 pm
From: Skylar Woodward <skylarwoodw...@gmail.com>
Date: Thu, 21 Jun 2012 20:43:34 -0700 (PDT)
Local: Thurs, Jun 21 2012 11:43 pm
Subject: caching issues related to JSONP?

I was using the API while toying around with some stuff and noticed that it
seems the servers are caching some responses incorrectly due to use of
JSONP. That is, if you request the partners feed:

  http://api.kivaws.org/v1/partners.json

You may get the right data, or you might get it wrapped in a function, ala
jsonp.  This come up as I was experimenting making calls both w/o and
without the jsonp parameter (w/i a few seconds of each other).  It was
almost as if the server was remembering the function name I last passed in
a similar json call, for example:

  http://api.kivaws.org/v1/partners.json?jsonp=my_callback

Worse, it seemed like a random round-robin as to what I'd get back.
Sometime I'd get what I requested (or what I requested a few seconds ago)
and other times I'd get something from another previous request. So it
seemed like an issue of per-server caching on certain feeds that didn't
take into account the jsonp param (or lack thereof). Thus, cache results
differing at different times between different servers too.

Anyone else see this?

I was also trying the requests through YQL and it seemed like even the YQL
servers where having trouble getting valid data back sometimes after I had
requested some jsonp results (e.g., YQL backend also getting a jsonp
wrapped response when it expected raw JSON).


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kevin O'Brien  
View profile  
 More options Jun 22 2012, 12:10 am
From: "Kevin O'Brien" <ke...@kiva.org>
Date: Thu, 21 Jun 2012 21:10:15 -0700
Local: Fri, Jun 22 2012 12:10 am
Subject: Re: caching issues related to JSONP?

I can't seem to reproduce your result with some basic stabs at it, but
perhaps someone else is seeing this?

However, that said, I am noticing in the logs that there has been an error
happening in the API since the release, of "unable to allocate memory for
pool", which could have something to do with an infrastructure change that
happened that day, and perhaps could have something to do with inconsistent
results being returned from the API.

-k

On Thu, Jun 21, 2012 at 8:43 PM, Skylar Woodward
<skylarwoodw...@gmail.com>wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »