Copied to clipboard

Flag this post as spam?

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


  • Ismael 71 posts 354 karma points
    Aug 02, 2016 @ 02:31
    Ismael
    0

    ClientDependency compatiblilty

    Hello.

    The Umbraco sites I work with use ClientDependency for bundling out the css/js using an html helpler, for example:

    @Html.RenderCssHere()
    

    Does the toolkit provide a similar helper?

    Many thanks.

  • Jeavon Leopold 3074 posts 13632 karma points MVP 11x admin c-trib
    Aug 04, 2016 @ 08:46
    Jeavon Leopold
    0

    Hi Ismael,

    Currently the AzureCDNToolKit uses a "origin push" approach so all assets to be served via CDN must be pushed to the storage account.

    I would recommend that you use a grunt or gulp task to bundle and minify your css and js and then upload it to the storage container. If you use images within your css I would also recommend considering using a task to append cache busting variables to those paths. One example is grunt-asset-cachebuster

    An alternative approach is to use a "origin pull" approach where the CDN could pull your bundles from the site. This approach is not currently supported by the toolkit although I am planning on adding it in the future.

    Jeavon

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies