This is a migrated thread and some comments may be shown as answers.

[Solved] Telerik CDN Support

1 Answer 51 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Matthew
Top achievements
Rank 1
Matthew asked on 10 Feb 2011, 12:04 AM

According to Telerik:

To distribute your web asset group via content delivery network you should use the ContentDeliveryNetworkUrl() method:

<%= Html.Telerik().ScriptRegistrar().Scripts(scripts =>
            scripts.AddGroup("CommonScript", group =>
                group.Add("~/Scripts/Core.js")
                     .Add("~/Scripts/Stuff.js")
                     .Combined(true)
                     .CacheDurationInDays(365)
                     .Compress(true)
                     .ContentDeliveryNetworkUrl("http://mycdn.com/CommonScript.js")
            )

I'm confused by this, specifically:

ContentDeliveryNetworkUrl("http://mycdn.com/CommonScript.js")

How does this file get created on the CDN? I assume Core.js and Stuff.js get combined, cached, and compressed then uploaded to my CDN automatically? Or is CommonScript.js another JS file that get's added to the combined script? If so, then the combined script gets served locally still, and not from the CDN?

Telerik say VERY VERY little about how all this work.

Any help is greatly appreciated.

1 Answer, 1 is accepted

Sort by
0
Matthew
Top achievements
Rank 1
answered on 11 Feb 2011, 06:41 PM
Telerik? Anyone? 
Tags
General Discussions
Asked by
Matthew
Top achievements
Rank 1
Answers by
Matthew
Top achievements
Rank 1
Share this question
or