@PreserveOnRefresh breaks dynamic Images with StreamResource

Hi,

I’m using @PreserveOnRefresh on some of my views to prevent new UI instances from being generated.
I’m have some Images on these pages which are dynamically generated via StreamResource. After a page refresh these images are broken/do not show up anymore.
Is this a known limitation of @PreserveOnRefresh?

I’m using Vaadin 14.0.4

Hi Ralph,
Thanks for reporting this. It looks like a bug to me. Would you please create an issue for it in [GitHub]
(https://github.com/vaadin/flow/issues/new)?

I created an issue → https://github.com/vaadin/flow/issues/6478

I found, that a possible workaround is to set the cacheTime property on the StreamResource (which is 0/disabled by default) to a reasonable high value.