Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Does roUrlTransfer cache response?

I am using roUrlTransfer::AsyncPostFromString() to get some JSON from a remote server and there appears to be some caching going on. Does roUrlTransfer automatically cache the response? If so how long does it cache for and can it be controlled?
0 Kudos
Binge Watcher

Re: Does roUrlTransfer cache response?

No, it does not cache transfers. Perhaps the server you are working with caches requests, or something else is going on with your code.

- Joel
0 Kudos

Re: Does roUrlTransfer cache response?

I am having the same issue. The response I get from brightscript code is different (expired) from what I get from a curl/chrome client. I added a cache buster (a random value) at the end of the url, and it worked just fine.
retuned expired data and fixed by adding a random value<some_random_value>

This works fine for query params method, but I have REST apis that does not allow that extra value. Is there a way to overcome this? I added Cache-Control : cache-none header, doesnt seem to be working either.

Any help appreciated. Thanks!
0 Kudos