andenagaveni24
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2014
05:42 AM
Roku cache responses from Rest API- how can it be fixed ?
Will Roku cache responses from Rest API ??? If so How can i fix it
In my application, i am getting response via Rest calls. When rest call is invoked it is giving the previous response but not the updated response.
For instance when a new user logs in, we are persisting his details into CSV file in a web application. when we try to get the details of registered users via rest call from Roku, we are not able to get the recently added user details but response contains previous user details.
We tried rdn function to bust the cache but for the first time we are able to get the updated users but on next hit it is giving the previous details.
Kindly help us in getting this issue fixed. Please provide code snippet if possible.
In my application, i am getting response via Rest calls. When rest call is invoked it is giving the previous response but not the updated response.
For instance when a new user logs in, we are persisting his details into CSV file in a web application. when we try to get the details of registered users via rest call from Roku, we are not able to get the recently added user details but response contains previous user details.
We tried rdn function to bust the cache but for the first time we are able to get the updated users but on next hit it is giving the previous details.
Kindly help us in getting this issue fixed. Please provide code snippet if possible.
4 REPLIES 4

TheEndless
Channel Surfer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2014
06:45 PM
Re: Roku cache responses from Rest API- how can it be fixed
As far as I'm aware, roUrlTransfer doesn't cache anything. Some screens will cache images that are downloaded, but roUrlTransfer shouldn't. It sounds like you might have an issue with your REST API. Have you confirmed it using a different client (e.g., a web browser)?
My Channels: http://roku.permanence.com - Twitter: @TheEndlessDev
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)

RokuJoel
Binge Watcher
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2014
01:11 PM
Re: Roku cache responses from Rest API- how can it be fixed
We tried rdn function to bust the cache but for the first time we are able to get the updated users but on next hit it is giving the previous details.
I'm betting that the rnd() function is only getting executed the first time you make the HTTP request, and the subsequent times you make the HTTP request you are reusing the original string thus the second call has already been cached and you're just getting the cached results.
Joel
destruk
Streaming Star
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2014
02:47 PM
Re: Roku cache responses from Rest API- how can it be fixed
I'd guess the caching is done on your server. You can disable that with extra headers.
andenagaveni24
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-28-2014
12:01 AM
Re: Roku cache responses from Rest API- how can it be fixed
Thank you all for your responses..