I am trying to user EnableCdn property in ScriptManager. Basically I have this piece of code in my master page file:
<asp:ScriptManager ID="MainScriptManager" runat="server" EnablePartialRendering="true"
EnableScriptGlobalization="true" EnableScriptLocalization="true" AsyncPostBackTimeout="3600" EnableCdn="True">
This works on the dev environment where we connect via HTTP - it references to such script:
<script src="http://ajax.aspnetcdn.com/ajax/4.5/5/WebForms.js" type="text/javascript"></script>
But on the production server, where we use SSL it tries to include such script:
<script src="https://ajax.microsoft.com/ajax/4.0/2/WebForms.js" type="text/javascript"></script>
There are two differencies (version and the domain), but most of all this file from version 4.0 is not on the CDN server (via https!).
Could anyone suggest some sort of resolution for this problem? Does that mean that version 4.0 is not supported via https, but it is via http (I can download file from version 4.5 by both methods, but 4.0 is only available via HTTP).
EDIT:
I have found information that "ajax.microsoft.com renamed to ajax.aspnetcdn.com" - this seems to be a problem with my version but I cannot find information (yet) how to change the domain into correct one. Should we reinstall framework on the production?
checkout this link
I know this dosen't solve the asked question. but this clears bit more how can we use it as this link explains it very well. It has similar syntax that "Nikola Bogdanovic" has mentioned, but it also includes the local path that will be used in case CDN doesn't respond to request.
For eg. (sample code):