Login Register

encode

dojo.xhrGet: cache and encode issues

I'm using Dojo on Google's App Engine (GAE) platform. When I call a Python service with xhrGet to perform a (cross domain) urlfetch, I need to add a unique parameter to each request since urlfetch caches the output.

In this environment, there are two issues with dojo.xhrGet:

[1] The xhrGet option "preventCache: true" adds a "&dojo.preventCache" parameter to the URL even if this is the first parameter (which should start with "?")

[2] The URL is not encoded, so the dojo.preventCache parameter gets lost when passing it to urlfetch

Syndicate content