Copied to clipboard

Flag this post as spam?

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

  • Ismael 67 posts 349 karma points
    Aug 02, 2016 @ 02:31

    ClientDependency compatiblilty


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


    Does the toolkit provide a similar helper?

    Many thanks.

  • Jeavon Leopold 3008 posts 13211 karma points MVP 7x admin c-trib
    Aug 04, 2016 @ 08:46
    Jeavon Leopold

    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.


Please Sign in or register to post replies

Write your reply to: