Login Register

cache

Dialog not refreshing / using cache data

I have a dijit dialog form which is used for data entry. Once the user clicks OK the data is written to a database and the dialog is closed (using HIDE method). However when I click the dialog button again, it still shows the previous data entered... it is still accessing the cache however I have set the refreshOnShow & preventCache attributes for the dialog:

And I close the dialog as follows:

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