We've just moved our image hosting to Azure with Imageresizer (v 4.0.5.942) fronted by Cloudflare's CDN but are finding the CDN retains a cached image when the image has changed back on the Azure blobstore.
We used the same CF CDN and Imageresizer on our outgoing image hosting which was an iis box with Imageresizer diskcaching set and didn't have the issue.
The plugin section of our Azure imageresizer config files is -
<add name="AzureReader2" prefix="~/"connectionString=
"DefaultEndpointsProtocol=httpsAccountName=reiwastorstagimg
AccountKey=xyzxyxyyz"`
checkForModifiedFiles="true" />
A test image is via CDN - http://azstagingimage.reiwa.com.au/listing/09/2635009-04.jpg?maxwidth=724&maxheight=543&quality=100
Direct to Imaresizer App - http://azstagingimage3.reiwa.com.au/listing/09/2635009-04.jpg?maxwidth=724&maxheight=543&quality=100
On prem the config contained -
<resizer>
<plugins>
<add name="DiskCache" />
</plugins>
<diskCache autoClean="false" hashModifiedDate="true" subfolders="1024" />
</resizer>
My thinking is when we were on prem with diskcaching turned on, Imageresizer would check the original images date/time stamp, compare it to its cached versions date/time and if changed, would re process the image thereby changing the cached images date/time modified stamp which in turn was picked up by the CDN, causing a re-read.
Looking at the Imageresizer documentation, I believe checkForModifiedFiles="true" would cause Imageresizer to go back to the blob store, get the originating files modified date and pass that to the CF CDN (or browser) but we have it set and it's not doing as we expected.
Does anyone know if there's a way around this or do I need to turn diskcache on in the cloud too?
Thank you in advance. Kieron