asp.net mvc - ImageResizer with RemoteReader & DiskCache Plugins not showing updated remote image -


when remote image changes version served imageresizer still old image. how best work around this?

config pretty straight forward , follows:

<diskcache dir="~/imagecache" autoclean="true" enabled="true" /> <remotereader signingkey="58h4e#o!vaidwpycig!erv74jsus6l1!" allowallsignedrequests="true" allowredirects="5">   <allow domain="domain.com" />   <allow domain="*.domain1.com" />   <allow domain="*.domain2.com" />   <!-- xml whitelisting requires v3.2 or higher   <allow domain="*.imageresizing.net" onlywhensigned="true"/> --> </remotereader> 

remotereader not wait round-trip http request see if image stale; rather, in order provide acceptable performance, requires client-facing url modified perform invalidation.

adding anything url, &imagever=2, etc, cause re-requested , cached.

can invalidate cached file without changing url? no. not if backend high-latency.

many of our providers (excluding remotereader) allow enable automatic invalidation - comes @ high of performance cost. changing url performant solution - , only solution, if have aggressive browser or cdn involved.


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -