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

CDN Generating Duplicates

6 Answers 122 Views
ScriptManager and StyleSheetManager
This is a migrated thread and some comments may be shown as answers.
Gokul
Top achievements
Rank 1
Gokul asked on 11 May 2015, 12:03 PM

I have setup CDN locally, however there are duplicate scriptresources.axd getting downloaded.

 

Below is the web config setting.

 

<add key="Telerik.Menu.EnableEmbeddedScripts" value="false"/>
<add key="Telerik.ScriptManager.TelerikCdn" value="Enabled" />
<add key="Telerik.StyleSheetManager.TelerikCdn" value="Enabled" />
<add key="Telerik.ScriptManager.TelerikCdn.BaseUrl" value="http://IP:Port/Scripts/ " />
<add key="Telerik.ScriptManager.TelerikCdn.BaseSecureUrl" value="https://IP:Port/Scripts/" />

 

Also attached fiddler and screen shots. By enabling CDN settings I would expect only JS files to be downloaded over scriptresource.axd files.

Please provide clarity. 

 

Telerik Version - 2012.1.411

 

Thanks

Gokul

6 Answers, 1 is accepted

Sort by
0
Peter Filipov
Telerik team
answered on 14 May 2015, 08:14 AM
Hello Gokul,

Please review the following help article how the scripts are loaded - the Telerik's and MS ajax ones. For your case the ajax scripts are not loaded from the CDN.

Regards,
Peter Filipov
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Gokul
Top achievements
Rank 1
answered on 19 May 2015, 07:03 AM

Hi Peter,

I have setup CDN locally and it works just fine when telerik radscriptmanager isn't added.

But, as I said there are duplicate AXD files getting downloaded.

When CDN is enabled why is there an AXD file getting downloaded, and if I try opening the AXD file it refers to telerik namespace.

We are trying to solve some of the performance issues in the application, fixing this issue will provide us a good response time. 

 

Thanks

Gokul

 

0
Gokul
Top achievements
Rank 1
answered on 19 May 2015, 07:05 AM
CORRECTION - I have setup CDN locally and it works just fine when telerik radscriptmanager is added.
0
Peter Filipov
Telerik team
answered on 19 May 2015, 07:28 AM
Hi Gokul,

Could you please provide me a runnable sample project which I could observe locally and investigate what are the loaded by the resource handler scripts.

Regards,
Peter Filipov
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Gokul
Top achievements
Rank 1
answered on 19 May 2015, 09:27 AM

No, I'm not in a position to share the code. Solution has more than 100 projects.

Is there any other way you can help me to troubleshoot the issue?

When I enable the CDN, I should not see any AXD's getting downloaded. Is my expectation correct?

0
Peter Filipov
Telerik team
answered on 20 May 2015, 08:24 AM
Hello Gokul,

The Ajax framework scripts should be loaded from separate CDN. Please review the article that I have pointed in my previous posts. In case that you want to load the styles from the CDN you will need to use the styles sheet manager and enable the CDN setting. 

Regards,
Peter Filipov
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
ScriptManager and StyleSheetManager
Asked by
Gokul
Top achievements
Rank 1
Answers by
Peter Filipov
Telerik team
Gokul
Top achievements
Rank 1
Share this question
or