Mr.Rick
Active member
On my site, http://rcforumz.com, I am trying to use a CDN to cache static images.
What I've done is the following:
Added these lines to my config.php:
Then I went into Appearance => Styles => Style Properties => General => Path to images
and entered: http://cdn.forumediainc.com/rcf/xenforo/styles/default/ and saved it.
After that I tried force refreshing the page and the images are still loading from their regular spot rather than from the CDN.
For example, the node-sprite.png shows as being loaded from:
http://rcforumz.com/styles/default/xenforo/rcforumz/node-sprite.png
rather than loading from:
http://cdn.forumediainc.com/rcf/xenforo/styles/default/xenforo/rcforumz/node-sprite.png
Both URLs work fine, but the non-CDN one is being used.
Could anyone point me in the direction of what I am doing wrong?
Thank you.
What I've done is the following:
Added these lines to my config.php:
PHP:
$config['javaScriptUrl'] = 'http://cdn.forumediainc.com/rcf/xenforo/js';
$config['externalDataUrl'] = 'http://cdn.forumediainc.com/rcf/xenforo/data';
$config['externalDataPath'] = '/home/rcforumz/www/data';
Then I went into Appearance => Styles => Style Properties => General => Path to images
and entered: http://cdn.forumediainc.com/rcf/xenforo/styles/default/ and saved it.
After that I tried force refreshing the page and the images are still loading from their regular spot rather than from the CDN.
For example, the node-sprite.png shows as being loaded from:
http://rcforumz.com/styles/default/xenforo/rcforumz/node-sprite.png
rather than loading from:
http://cdn.forumediainc.com/rcf/xenforo/styles/default/xenforo/rcforumz/node-sprite.png
Both URLs work fine, but the non-CDN one is being used.
Could anyone point me in the direction of what I am doing wrong?
Thank you.