css - ImageResizer, azure cdn, cache busting and url rewrting -
i planning on using imageresizer dynamically resize images. images stored on azure blobs , accessed via cdn.
at moment files paths inline , in css:
<img src="/images/someimage.jpg" /> .backgroundimage { url('/images/somebgimage.jpg')
1) recommended way redirect image paths use cdn? i've seen people use html helpers (in asp.mvc @html.cdnimage('/images/something.jpg')) doesn't work images in css.
2) there url-rewriting in web.config
given imageresizer uses querystring manipulate images, how go cache busting images after update , how point images use cdn?
client-side redirects massively increase latency, , should avoided. can't use url-rewriting between different hosts.
most css pre-processors support helper methods. if can't use helpers everywhere, manually insert cdn addresses.
cache-busting cdn-specific. changing url works everywhere (unless disable querystring-specific caching on cdn). cdns offer invalidation api. either way, open question specific cdn using isn't imageresizer question.
Comments
Post a Comment