Telerik CDN Support -
according telerik:
to distribute web asset group via content delivery network should use 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 this, specifically:
contentdeliverynetworkurl("http://mycdn.com/commonscript.js")
how file created on cdn? assume core.js , stuff.js combined, cached, , compressed uploaded cdn automatically? or commonscript.js js file get's added combined script? if so, combined script gets served locally still, , not cdn?
telerik very little how work.
any appreciated.
- matt
you need upload combined file yourself. contentdeliverynetworkurl tells script registrar output value instead of core.js , stuff.js.
Comments
Post a Comment