Hi folks,
in Vaadin 6 this works out of the box but in Vaadin 7 I can’t find any solution for that
I generated Images on the fly:
- generate an special “org.springframework.core.io.ByteArrayResource” which equals only the “path of the resource”
- then I have an SpringToVaadinResourceAdapter
- in Vaadin6 this was an ApplicationResource
- in Vaadin7 I’m implemented ConnectorResource
XXX maybe this is the problem here XXX
- then I create new Image(null, SpringToVaadinResourceAdapter) and placed in the UI
Vaadin6 → the Browser downloads the Images only one-time (if the resources changed then the image was replaced)
Vaadin7 → download the images again and again and again …
I rebuild the layout always, I create in each request-response new Images
In the old Vaadin 6 day the framework handels the caching ( Images / Embedded with “same” resource downloaded from browsercache)
For example:
Vaadin6: http://XXXX/APP/38/singleline-LAYER_2-column-03586348819794901964.png
^^^ changes only if underlying resource changes
Vaadin7: http://XXXX/APP/connector/0/4629/source/singleline-LAYER_2-column-06187959398345057710.png
^^^^^^ grows …
Any ideas???
Kind Regards
Andreas