• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Only thumbnails coming from CDN

#1
I may have forgotten, but can't remember why thumbnails would be the only element being served from my CDN. The media-view and full-size images are being served directly from my server.

Is that normal, or is there something I've missed?
 

Chris D

XenForo developer
Staff member
#2
If you're using an add-on to provide the CDN functionality then you would need to contact the author of that add-on.

Otherwise, the only way that XF (and the Gallery) would support hosting files from a different location is by specifying a custom internal data directory in your config.php

PHP:
$config['internalDataPath'] = 'internal_data';
 
#3
Otherwise, the only way that XF (and the Gallery) would support hosting files from a different location is by specifying a custom internal data directory in your config.php
Could I get clarification on this? I've been using MaxCDN on vB for years, and continue to use them now that I'm on Xenforo.

Is there a simple change we can do to have images and media cached in the CDN that I've missed?
 

Mike

XenForo developer
Staff member
#4
Generally, no. Attachments (including media) are generally served by PHP to enforce permissions (and to potentially allow other functionality). As such, they are served by the web server.