The DynamicImage performance

The DynamicImage server control, unlike the traditional ASP.NET Image, is able to handle the client cache duration in the image response; this is particularly usefull for static images when it can reduce the request time between posts.

Out-of-the-box, the DynamicImage supports also server caching; the server caching mechanism uses the Src property as the Cache key.

<piece:DynamicImage ID="DynamicImage1" runat="server"
    ClientCacheDuration="100" ServerCacheDuration="25">
</piece:DynamicImage>

Any property change that affects the image generation modifies also the image src and so automatically invalidates any active server cache.