Hi Fabian

Thanks for the clarification. I forgot about the properties. But what
about the ImageLoader? The OP said he tried that as well.
What are the caching mechanisms of the ImageLoader Class?

Best - Roman

Fabian Jakobs wrote:
> Roman Schmid schrieb:
>> Hi Alessandro
>>
>> What you're experiencing is browser default behavior. You could either
>> add a random number to your query (doesn't have to be a counter), or
>> maybe modify your headers so that the image won't be cached.
>>   
> Actually its the way qooxdoo handles properties. If you set the same 
> value to a property neither a change event is fired nor the apply method 
> is called. Because of that setting the same URL again has no effect.
> 
> 
>> Try to add the following headers:
>> -----
>> Cache-Control : "no-cache"
>> Pragma : "no-cache"
>> Expires : -1
>> -----
>>   
> This will not work for the reasons explained above.
>> I think the safest method is the random number to create unique urls...
>> and it is fairly simple to implement and use.
>>   
> That's the way to got. Just use an URL like 
> "http://my.com/chart?nocache=123"; and increase the number on each request.
> 
> Best Fabian
>> Cheers - Roman
>>
>>
>> turicum wrote:
>>   
>>> Dear Qooxdooxers,
>>>
>>> I'm generating charts with a WSGI python-based server. The image is located
>>> at  fixed URL (eg, http://my.com/chart), which is mapped to a python
>>> function. Qooxdoo loads it correctly the first time I invoke  chart = new
>>> qx.ui.basic.Image("http://my.com/chart";). So far so good.
>>>
>>> When I invoke chart.setSource("http://my.com/chart";) after new data (and a
>>> new chart) are available, qooxdoo does not update the image. I tried
>>> initSource(), applySource(), resetSource() as well as the imageLoader. The
>>> only way I found to have the image updated is to add a counter and append a
>>> query to the URL, with an increasing count number, for example:
>>> http://my.com/chart?count=1
>>>
>>> This makes me suspect that some caching is occurring somewhere. How can I
>>> shut it down and have the chart updated whenever I need it?
>>>
>>> I attached a screenshot just to show how well matplotlib charts integrate in
>>> qooxdoo.
>>>
>>> Thanks!
>>> Alessandro
>>>
>>> http://www.nabble.com/file/p22280893/screenshot.png 
>>>
>>>     
>> ------------------------------------------------------------------------------
>> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
>> -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
>> -Strategies to boost innovation and cut costs with open source participation
>> -Receive a $600 discount off the registration fee with the source code: SFAD
>> http://p.sf.net/sfu/XcvMzF8H
>> _______________________________________________
>> qooxdoo-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>>
>>
>>   
> 
> 

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to