If you just set the rootUrl value in the FileSystemProviders.config to your CDN Endpoint, you'll then be fethcing images from CDN, I tried it and it worked well.
I dont how good this workaround would be, I suggest consulting Dirk.
currently this package does not support CDN endpoints. Due to the long delay until the CDN cache shows updates, I don't think you should use CDN endpoints there.
If you like to use the CDN uri in the frontend (what makes sense) all you have to do is a simple replace of the blob storage domain by the CDN domain.
I would also be interested in using the cdn for frontend and blob for backend as I have had no end of issues when using the cdn on the backend (thumbnails dissapering etc)
you should configure the filesytemprovider's rootUrl for the blob storage (http://[myAccountName].blob.core.windows.net/). Thus all media urls are directed to the blob storage in the back office.
For frontend you can use your CDN endpoint. All you have to do is replacing the blob storage rootUrl by the CDN domain. You can do this like Alex within a (razor) helper function or in your business logic.
Does the Azure Blob Storage Provider support CDN endpoints?
I've been using the Azure Blob Storage Provider for my personal site (dog fooding it before using it on new client projeccts) and it works great!
I was wondering if it is possible to configure it to use the Azure CDN. For instance, I have uploaded a PDF whose URL is http://alexlindgren.blob.core.windows.net/media/1001/site-building-with-umbraco-7.pdf but, because I've set up a CDN endpoint, is also available at: http://az659251.vo.msecnd.net/media/1001/site-building-with-umbraco-7.pdf Is there a way to get the CDN URL when displaying links/URLs so that images and other media can be loaded over the CDN?
Thanks!
Alex
Hello Alex,
Did you find any answer so far ... I would be intrested knowing about a solution for mentioned scenario.
Thanks!
Moe
Hello Alex,
If you just set the rootUrl value in the FileSystemProviders.config to your CDN Endpoint, you'll then be fethcing images from CDN, I tried it and it worked well.
I dont how good this workaround would be, I suggest consulting Dirk.
Best,
Moe
Hallo Alex,
currently this package does not support CDN endpoints.
Due to the long delay until the CDN cache shows updates, I don't think you should use CDN endpoints there.
If you like to use the CDN uri in the frontend (what makes sense) all you have to do is a simple replace of the blob storage domain by the CDN domain.
Yours
Dirk
Thanks Dirk,
So I guess the best thing to do is create a helper function for writing out the image URLs on the frontend.
Alex
I would also be interested in using the cdn for frontend and blob for backend as I have had no end of issues when using the cdn on the backend (thumbnails dissapering etc)
How do you go about this?
Hi William,
you should configure the filesytemprovider's rootUrl for the blob storage (http://[myAccountName].blob.core.windows.net/). Thus all media urls are directed to the blob storage in the back office.
For frontend you can use your CDN endpoint. All you have to do is replacing the blob storage rootUrl by the CDN domain. You can do this like Alex within a (razor) helper function or in your business logic.
Yours
Dirk
is working on a reply...