CrumpledDog / Umbraco-AzureCDNToolkit

Makes it easy to fully utilise the Azure CDN with a Umbraco website
13 stars 14 forks source link

StreamCachedImage=true #11

Open croban opened 6 years ago

croban commented 6 years ago

If inside imageprocessor/cache.config <setting key="StreamCachedImage" value="true"> then Url.GetCropCdnUrl resolve url with AzureCDNToolkit:Domain and not with AzureCDNToolkit:CdnUrl Did I configure something wrong or this value must be false?

here whole cache.config

<cache name="AzureBlobCache" type="ImageProcessor.Web.Plugins.AzureBlobCache.AzureBlobCache, ImageProcessor.Web.Plugins.AzureBlobCache" maxDays="365" browserMaxDays="7" folderDepth="6" trimCache="true">
<settings>
  <setting key="CachedStorageAccount" value="UseDevelopmentStorage=true"/>
  <setting key="CachedBlobContainer" value="cache"/>
  <setting key="UseCachedContainerInUrl" value="true"/>
  <setting key="CachedCDNRoot" value="http://localcdn:8060"/>
  <setting key="CachedCDNTimeout" value="2000" />
  <setting key="SourceStorageAccount" value="UseDevelopmentStorage=true"/>
  <setting key="SourceBlobContainer" value="media"/>
  <setting key="StreamCachedImage" value="true"/>
</settings>
</cache>

and here are my web.config AzureDBToolkit appsetings

<add key="AzureCDNToolkit:UseAzureCdnToolkit" value="true"/>
<add key="AzureCDNToolkit:Domain" value="http://localhost:51790"/>
<add key="AzureCDNToolkit:CdnUrl" value="http://localcdn:8060"/>
<add key="AzureCDNToolkit:CdnPackageVersion" value="0.0.1"/>
<add key="AzureCDNToolkit:AssetsContainer" value="assets"/>
<add key="AzureCDNToolkit:MediaContainer" value="media"/>
<add key="AzureCDNToolkit:SecurityModeEnabled" value="false"/>
<add key="AzureCDNToolkit:SecurityToken" value=""/>

I am using 0.2.0 -alpha version of AzureCDNToolkit