Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Alex Lindgren 159 posts 356 karma points
    Sep 13, 2014 @ 20:25
    Alex Lindgren
    0

    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

  • gh589 6 posts 26 karma points
    Nov 06, 2014 @ 20:20
    gh589
    0

    Hello Alex,

    Did you find any answer so far ... I would be intrested knowing about a solution for mentioned scenario.

    Thanks!

    Moe

  • gh589 6 posts 26 karma points
    Nov 09, 2014 @ 21:53
    gh589
    0

    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

  • Dirk Seefeld 126 posts 665 karma points
    Jan 03, 2015 @ 22:18
    Dirk Seefeld
    0

    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 

  • Alex Lindgren 159 posts 356 karma points
    Jan 05, 2015 @ 16:54
    Alex Lindgren
    0

    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

  • William Corry 34 posts 171 karma points
    Jan 07, 2015 @ 11:32
    William Corry
    0

    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?

     

  • Dirk Seefeld 126 posts 665 karma points
    Jan 07, 2015 @ 12:48
    Dirk Seefeld
    0

    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 

Please Sign in or register to post replies

Write your reply to:

Draft