cancel
Showing results for 
Search instead for 
Did you mean: 

CDN config not working

CDN config not working

Hello Guys,

 

When I change my  unsecure Basis media-URL and secure Basis media-URL to http://cdn.dumcowebshop.nl/media. The Javascript ar not working when I change it back all is ok but I do not change my javascript path so why it's not working ?

 

See screenshot config setup : https://gyazo.com/a7e5b6d666a5dd83517bc0b6d03251ca

 

Best regards,

Michel

Tags (2)
2 REPLIES

Re: CDN config not working

I see now what is causing the problem.

 

When I trun on Merge JavaScript Files to YES Magento place the files in the map Media. When I trun it off the CDN is working good!

 

But now the next question can I change the path where Magento place the Merga JavaScript files ?

 

best regards,

Michel

Re: CDN config not working

Hi Michel,

 


There is no system configuration field on the admin panel to customize the merged JS directory.

However, if you would like to customize that directory, you probably want to take a look at the following methods on the codebase:

 

 

Mage_Core_Model_Design_Package::getMergedJsUrl()

and:

 

Mage_Core_Model_Design_Package::_initMergerDir()

 

Best regards.

Gabriel

 

If my answer was useful, please give "Kudos" to this post.
If my answer helps you to resolve the problem, click on "Accept as Solution".