Image caching
Image caching is vital for performance, especially when not using a CDN for image rendering.
Disk cache
By default, images are cached on disk under App_Data\AdaptiveImagesCache
.
The path can be changed by setting the DiskCachePath property of the IAddonSettings instance when initializing Adaptive Images (see Configuration).
Azure blob storage cache
For websites hosted in Azure, for example through DXP, images can instead be cached in Azure blob storage.
To enable it, install the AdaptiveImages.Azure NuGet package and then add services.AddAzureImageCache(connectionString)
to ConfigureServices() in Startup.
For the connection string, you may re-use the connection string used for CMS blobs (a separate container will be created for cached images).
Disable caching
You may disable image caching altogether by setting the DisableImageCache property of the IAddonSettings instance when initializing Adaptive Images (see Configuration).
Custom caching
If need be, you can replace the IImageCache service to take control over how images are cached.