How to enable CDN in DNN (DotNetNuke) 9?

Category: DNN-DotNetNukeTags: ,

I could not find UI to enable CDN in DNN (DotNetNuke) 9. I used SQL script in order to make a change. These settings are host level changes and affects all the portals.

UPDATE dbo.HostSettings
SET SettingValue='Y', LastModifiedOnDate = GETDATE()
WHERE SettingName='CDNEnabled'

UPDATE dbo.HostSettings
SET SettingValue='Y', LastModifiedOnDate = GETDATE()
WHERE SettingName='EnableMsAjaxCDN'

Once you make the change, you need to restart the application in order to make it effective.

Share

3 comments

Your email address will not be published. Required fields are marked *

  1. Tim Ramlogan says:

    Thanks…This worked. I’m using version 9.6

  2. Armin says:

    Thanks, but not working at all

    1. Hello Armin,

      This CDN is enabled only for certain specific scripts which already have CDN path defined within database. I had it is working by making the mentioned changes and restarting the application. I had to trace the source code in order find this change. If it is not working for you, please explore source code and search for “CDNEnabled” and “EnableMsAjaxCDN” to check what could cause the issue for your setup.

      Regards,
      Vishal Monpara