This question is locked. New answers and comments are not allowed.
Hello,
We'd like to use our own CDN for storing stylesheets and javascripts. For example, suppose register the stylesheet "~/Content/screen.css" with the StylesheetRegistrar. When the application starts up, I'd to specify to replace "~" with the CDN I provide (say http://cdn.example.com/a/b/c where a, b and c are arbitrary folders). The result should be "http://cdn.example.com/a/b/c/Content/screen.css" rather than resolving relative to the existing website. I'd also like all the telerik css and javascript to be loaded in a similar way.
The aim is essentially to consolidate all the assets of several web applications such that they are referenced from a CDN. However, I do not want to manually configure each script and stylesheet. I'd rather specify the base url once per application.
Is this possible? If not, how can I achieve this?
Thanks,
Werner
We'd like to use our own CDN for storing stylesheets and javascripts. For example, suppose register the stylesheet "~/Content/screen.css" with the StylesheetRegistrar. When the application starts up, I'd to specify to replace "~" with the CDN I provide (say http://cdn.example.com/a/b/c where a, b and c are arbitrary folders). The result should be "http://cdn.example.com/a/b/c/Content/screen.css" rather than resolving relative to the existing website. I'd also like all the telerik css and javascript to be loaded in a similar way.
The aim is essentially to consolidate all the assets of several web applications such that they are referenced from a CDN. However, I do not want to manually configure each script and stylesheet. I'd rather specify the base url once per application.
Is this possible? If not, how can I achieve this?
Thanks,
Werner