CDN Fall back mechanism


  • Hi,

    I am using the CDN to store my JS CSS and Images in my project. I am accessing direclty from CDN. I want to know the CDN fall back mechanism which will help me in case of CDN failure, so that I can access images , JS, and CSS should access from local folders.?

    Pavankumar Kulkarni

    Friday, June 5, 2015 2:36 PM


  • Can you provide more details on what is not working. Do you see a failure in getting the resource from the CDN endpoint? Does the request come back to the source origin? You should be able to see the requests in the IIS logs of the webrole instance.

    Regarding your question, you will need to add the scriptBundle for each of the jqueries you have like the example below shows(one each for "~/bundles/jquery","~/bundles/jqueryval etc).

    bundles.Add(new ScriptBundle("~/bundles/jquery"<mark>, string.Format(cdnUrl, "bundles/jquery")</mark>).Include(

    .Add(new ScriptBundle("~/bundles/jqueryval"<mark>, string.Format(cdnUrl, "bundles/jqueryval")</mark>).Include(

    Wednesday, June 10, 2015 3:40 PM

All replies